diff options
author | marcus <marcus@FreeBSD.org> | 2002-12-02 16:52:41 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-12-02 16:52:41 +0000 |
commit | 13267960658d0134cda57c97204a8f9b676fe56c (patch) | |
tree | 1108e61161c7835b0b308c90b67f7eec54edcd61 | |
parent | 658f1260ba571420e4f0b6534997c74f0fbd9926 (diff) | |
download | FreeBSD-ports-13267960658d0134cda57c97204a8f9b676fe56c.zip FreeBSD-ports-13267960658d0134cda57c97204a8f9b676fe56c.tar.gz |
Fix build with bison 1.75.
Reported by: bento
-rw-r--r-- | lang/wxbasic/files/patch-wxbasic.y | 97 | ||||
-rw-r--r-- | x11/xstroke/files/patch-rec_parse.y | 17 |
2 files changed, 114 insertions, 0 deletions
diff --git a/lang/wxbasic/files/patch-wxbasic.y b/lang/wxbasic/files/patch-wxbasic.y new file mode 100644 index 0000000..ba4dd11 --- /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; } + ; + diff --git a/x11/xstroke/files/patch-rec_parse.y b/x11/xstroke/files/patch-rec_parse.y new file mode 100644 index 0000000..07f32db --- /dev/null +++ b/x11/xstroke/files/patch-rec_parse.y @@ -0,0 +1,17 @@ +--- rec_parse.y.orig Mon Dec 2 11:54:46 2002 ++++ rec_parse.y Mon Dec 2 11:55:02 2002 +@@ -162,12 +162,14 @@ + $$ = $1; + rec_mode_list_append(&$$, $3); + } ++ ; + + mode_id : STRING + { + $$ = rec_get_mode((rec_t *) rec, $1); + free($1); + } ++ ; + + gesture_list : gesture + { |