зеркало из https://github.com/mozilla/gecko-dev.git
Fix xpidl header generation to not emit a trailing (erroneous) ',' when generating [notxpcom] interfaces.
Thanks to Alec Flett <alecf@netscape.com> for this patch.
This commit is contained in:
Родитель
e880402830
Коммит
906d95820c
|
@ -505,7 +505,8 @@ op_dcl(TreeState *state)
|
|||
state->tree = IDL_LIST(iter).data;
|
||||
if (!xpcom_param(state))
|
||||
return FALSE;
|
||||
if (IDL_LIST(iter).next || op->op_type_spec || op->f_varargs)
|
||||
if ((IDL_LIST(iter).next ||
|
||||
(!op_notxpcom && op->op_type_spec) || op->f_varargs))
|
||||
fputs(", ", state->file);
|
||||
}
|
||||
|
||||
|
|
|
@ -505,7 +505,8 @@ op_dcl(TreeState *state)
|
|||
state->tree = IDL_LIST(iter).data;
|
||||
if (!xpcom_param(state))
|
||||
return FALSE;
|
||||
if (IDL_LIST(iter).next || op->op_type_spec || op->f_varargs)
|
||||
if ((IDL_LIST(iter).next ||
|
||||
(!op_notxpcom && op->op_type_spec) || op->f_varargs))
|
||||
fputs(", ", state->file);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче