зеркало из https://github.com/mozilla/pjs.git
Bug 422555: outparam and inoutparam attributes
This commit is contained in:
Родитель
c8aa2028bb
Коммит
bdecc882a0
|
@ -258,10 +258,14 @@
|
|||
/**
|
||||
* Attributes defined to help Dehydra GCC analysis.
|
||||
*/
|
||||
#ifdef DEHYDRA_GCC
|
||||
# define NS_SCRIPTABLE __attribute__((user("script")))
|
||||
#ifdef STATIC_CHECKING
|
||||
# define NS_SCRIPTABLE __attribute__((user("NS_script")))
|
||||
# define NS_OUTPARAM __attribute__((user("NS_outparam")))
|
||||
# define NS_INOUTPARAM __attribute__((user("NS_inoutparam")))
|
||||
#else
|
||||
# define NS_SCRIPTABLE
|
||||
# define NS_OUTPARAM
|
||||
# define NS_INOUTPARAM
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
@ -998,6 +998,12 @@ write_param(IDL_tree param_tree, FILE *outfile)
|
|||
|
||||
fputs(IDL_IDENT(IDL_PARAM_DCL(param_tree).simple_declarator).str, outfile);
|
||||
|
||||
if (IDL_PARAM_DCL(param_tree).attr == IDL_PARAM_OUT) {
|
||||
fputs(" NS_OUTPARAM", outfile);
|
||||
} else if (IDL_PARAM_DCL(param_tree).attr == IDL_PARAM_INOUT) {
|
||||
fputs(" NS_INOUTPARAM", outfile);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче