Fix for bug 24965. This makes multiple attributes in same declaration an error in XPIDL. sr=scc, r=rginda

This commit is contained in:
dbradley%netscape.com 2001-08-06 20:42:53 +00:00
Родитель 78068a5ef5
Коммит 56978e5af7
2 изменённых файлов: 9 добавлений и 0 удалений

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

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