Bug 422555: outparam and inoutparam attributes

This commit is contained in:
David Mandelin 2008-04-24 15:05:06 -07:00
Родитель cb6f7e8614
Коммит 0da1bbdc0b
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -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;
}