зеркало из https://github.com/mozilla/pjs.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:
Родитель
3a98e8afe1
Коммит
70e7afed06
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче