freebsd-ports/editors/openoffice/files/patch-idlc+source+parser.yy
Martin Blapp 5baa4bf2b2 Commit first part of bison 1.75 patches.
Tested by:	various openoffice users
2002-11-04 06:15:37 +00:00

36 lines
635 B
Text

--- ../idlc/source/parser.yy.orig Wed Jul 10 11:43:18 2002
+++ ../idlc/source/parser.yy Thu Oct 31 10:00:47 2002
@@ -995,7 +995,8 @@
{
idlc()->setParseState(PS_ConstantDeclSeen);
}
- ';'
+ ';' {};
+
const_dcl :
IDL_CONST
@@ -1316,7 +1317,7 @@
* Push the scope of the exception on the scopes stack
*/
idlc()->scopes()->push(pExcept);
- delete $1
+ delete $1;
}
'{'
{
@@ -1705,10 +1706,10 @@
{
idlc()->setParseState(PS_TypedefSeen);
}
- type_declarator
- | struct_type
- | union_type
- | enum_type
+ type_declarator {}
+ | struct_type {}
+ | union_type {}
+ | enum_type {}
;
type_declarator :