aboutsummaryrefslogtreecommitdiff
path: root/editors/openoffice.org-1.0/files/patch-idlc+source+parser.yy
blob: 5ad06d2a41008ca26ed9581f4759c7f69b6c7ee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- ../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 :