зеркало из https://github.com/mozilla/gecko-dev.git
Bug 422555: outparam and inoutparam attributes
This commit is contained in:
Родитель
cb6f7e8614
Коммит
0da1bbdc0b
|
@ -258,10 +258,14 @@
|
||||||
/**
|
/**
|
||||||
* Attributes defined to help Dehydra GCC analysis.
|
* Attributes defined to help Dehydra GCC analysis.
|
||||||
*/
|
*/
|
||||||
#ifdef DEHYDRA_GCC
|
#ifdef STATIC_CHECKING
|
||||||
# define NS_SCRIPTABLE __attribute__((user("script")))
|
# define NS_SCRIPTABLE __attribute__((user("NS_script")))
|
||||||
|
# define NS_OUTPARAM __attribute__((user("NS_outparam")))
|
||||||
|
# define NS_INOUTPARAM __attribute__((user("NS_inoutparam")))
|
||||||
#else
|
#else
|
||||||
# define NS_SCRIPTABLE
|
# define NS_SCRIPTABLE
|
||||||
|
# define NS_OUTPARAM
|
||||||
|
# define NS_INOUTPARAM
|
||||||
#endif
|
#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);
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче