зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 24965. This makes multiple attributes in same declaration an error in XPIDL. sr=scc, r=rginda
This commit is contained in:
Родитель
78068a5ef5
Коммит
56978e5af7
|
@ -226,6 +226,8 @@ doc_attribute_declaration(TreeState *state)
|
|||
{
|
||||
IDL_tree attr = state->tree;
|
||||
|
||||
if (!verify_attribute_declaration(attr))
|
||||
return FALSE;
|
||||
/*
|
||||
* Attribute idents can also take doc comments. They're ignored here;
|
||||
* should they be?
|
||||
|
|
|
@ -260,6 +260,13 @@ verify_attribute_declaration(IDL_tree attr_tree)
|
|||
"types must be marked [noscript]\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (IDL_LIST(IDL_ATTR_DCL(attr_tree).simple_declarations).next != NULL)
|
||||
{
|
||||
IDL_tree_error(attr_tree,
|
||||
"multiple attributes in a single declaration is not supported\n");
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче