[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#164489: [PATCH] xkbcomp build problem with bison 1.50



Package: xfree86
Version: 4.2.1-2
tags: patch


 Compile xc/programs/xkbcomp/xkbparse.y with bison 1.50 cause
trouble. 

bison -y  xkbparse.y
xkbparse.y:447.3: parse error, unexpected "|"
xkbparse.y:510.3: parse error, unexpected "|"
make: *** [xkbparse.c] Error 1


 xkbparse.y  contains some needless semicolons.

--- xc/programs/xkbcomp/xkbparse.y.orig	2001-01-18 08:45:45.000000000 +0900
+++ xc/programs/xkbcomp/xkbparse.y	2002-10-13 03:15:25.000000000 +0900
@@ -448,7 +448,6 @@
 
 ShapeDecl	:	SHAPE String OBRACE OutlineList CBRACE SEMI
 			{ $$= ShapeDeclCreate($2,(OutlineDef *)&$4->common); }
-		;
 		|	SHAPE String OBRACE CoordList CBRACE SEMI
 			{ 
 			    OutlineDef *outlines;
@@ -511,7 +510,7 @@
 			{ 
 			    $$= (OverlayKeyDef *)
 				AppendStmt(&$1->common,&$3->common);
-			};
+			}
 		|	OverlayKey
 			{ $$= $1; }
 		;

-- 
ISHIKAWA Mutsumi
 <ishikawa@linux.or.jp>, <ishikawa@debian.org>, <ishikawa@netvillage.co.jp>




Reply to: