diff options
author | marcus <marcus@FreeBSD.org> | 2002-12-03 00:52:41 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-12-03 00:52:41 +0800 |
commit | 13267960658d0134cda57c97204a8f9b676fe56c (patch) | |
tree | 1108e61161c7835b0b308c90b67f7eec54edcd61 /lang | |
parent | 658f1260ba571420e4f0b6534997c74f0fbd9926 (diff) | |
download | freebsd-ports-gnome-13267960658d0134cda57c97204a8f9b676fe56c.tar.gz freebsd-ports-gnome-13267960658d0134cda57c97204a8f9b676fe56c.tar.zst freebsd-ports-gnome-13267960658d0134cda57c97204a8f9b676fe56c.zip |
Fix build with bison 1.75.
Reported by: bento
Diffstat (limited to 'lang')
-rw-r--r-- | lang/wxbasic/files/patch-wxbasic.y | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/lang/wxbasic/files/patch-wxbasic.y b/lang/wxbasic/files/patch-wxbasic.y new file mode 100644 index 000000000000..ba4dd117eddb --- /dev/null +++ b/lang/wxbasic/files/patch-wxbasic.y @@ -0,0 +1,97 @@ +--- wxbasic.y.orig Mon Dec 2 11:47:30 2002 ++++ wxbasic.y Mon Dec 2 11:52:08 2002 +@@ -378,7 +378,7 @@ + { $$ = wOpNode( W_OP_CLOSE, NULL, NULL ); } + + | W_TOKEN_CONST constList sep +- { $$ = $2 } ++ { $$ = $2; } + + | W_TOKEN_COMMON + { if (wCurrentScope != NULL) { +@@ -397,7 +397,7 @@ + $$ = wOpNode( W_OP_CONTINUE, NULL, NULL ); } + + | W_TOKEN_DELETE expr sep +- { $$ = wOpNode( W_OP_DELETE, $2, NULL ) } ++ { $$ = wOpNode( W_OP_DELETE, $2, NULL ); } + + /* same as Dim Common */ + | W_TOKEN_DIM W_TOKEN_COMMON +@@ -486,7 +486,7 @@ + wSymbolNode( W_OP_NOOP, $5, NULL, NULL ), $9 ); } + + | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_VARIABLE_NAME W_TOKEN_IN error +- { wExpected("an Array") }; ++ { wExpected("an Array"); } + + + | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_UNDEFINED W_TOKEN_IN W_TOKEN_ARRAY_NAME +@@ -498,16 +498,16 @@ + wSymbolNode( W_OP_NOOP, $5, NULL, NULL ), $8 ); } + + | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_UNDEFINED W_TOKEN_IN error +- { wExpected("an Array") }; ++ { wExpected("an Array"); } + + | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_VARIABLE_NAME error +- { wExpected("In") }; ++ { wExpected("In"); } + + | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_UNDEFINED error +- { wExpected("In") }; ++ { wExpected("In"); } + + | W_TOKEN_FOR W_TOKEN_EACH error +- { wExpected("a variable") }; ++ { wExpected("a variable"); } + + /* For <var> = <expr> To <expr> [step <expr>] ... next */ + | W_TOKEN_FOR W_TOKEN_VARIABLE_NAME +@@ -529,7 +529,7 @@ + $$ = $4; } + + | W_TOKEN_FOR error +- { wExpected("Each or a variable") }; ++ { wExpected("Each or a variable"); } + + + | W_TOKEN_DECLARE W_TOKEN_FUNCTION W_TOKEN_UNDEFINED +@@ -1328,7 +1328,7 @@ + + printList: + ';' printList +- { $$ = $2 } ++ { $$ = $2; } + + | ',' printList + { $$ = wIntNode( W_OP_PRINT_VALUE, W_PRINT_TAB, NULL, $2 ); } +@@ -1519,7 +1519,7 @@ + { wIncrStack( wArgCountStack, 1 ); + if ($1->stackPos != wPeekStack(wArgCountStack) ) { + wFatal( W_SYNTAX, "Variable %s does not match declaration", $1->name); +- } }; ++ } } + + | W_TOKEN_VARIABLE_NAME ',' optSep + { wIncrStack( wArgCountStack, 1 ); +@@ -1558,7 +1558,7 @@ + | '.' '.' '.' ')' + { if (wCurrentScope->optArgs != W_MAX_OPT_ARGS) { + wFatal( W_SYNTAX, "... does not match declaration" ); +- } }; ++ } } + | error + { wFatal( W_SYNTAX, "Parm list does not match declaration" ); } + +@@ -1617,8 +1617,8 @@ + + fileHandle + : '#' expr +- { $$ = $2 } ++ { $$ = $2; } + | expr +- { $$ = $1 } ++ { $$ = $1; } + ; + |