diff options
author | pat <pat@FreeBSD.org> | 2002-12-16 02:55:49 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-12-16 02:55:49 +0800 |
commit | 352ccbaa1a44ad0330085784d4b94694632c1013 (patch) | |
tree | 388b6e87bde4b335f1e1331e9f1f6b9a3d63fb24 /lang | |
parent | 5660940b684f5633d3f332f19ff86ee8074a372a (diff) | |
download | freebsd-ports-gnome-352ccbaa1a44ad0330085784d4b94694632c1013.tar.gz freebsd-ports-gnome-352ccbaa1a44ad0330085784d4b94694632c1013.tar.zst freebsd-ports-gnome-352ccbaa1a44ad0330085784d4b94694632c1013.zip |
Fix patching
Submitted by: bento
Diffstat (limited to 'lang')
-rw-r--r-- | lang/wxbasic/files/patch-wxbasic.y | 169 |
1 files changed, 80 insertions, 89 deletions
diff --git a/lang/wxbasic/files/patch-wxbasic.y b/lang/wxbasic/files/patch-wxbasic.y index ba4dd117eddb..fdf44d0fc6ec 100644 --- a/lang/wxbasic/files/patch-wxbasic.y +++ b/lang/wxbasic/files/patch-wxbasic.y @@ -1,97 +1,88 @@ ---- wxbasic.y.orig Mon Dec 2 11:47:30 2002 -+++ wxbasic.y Mon Dec 2 11:52:08 2002 +--- wxbasic.y.orig Sun Dec 15 13:17:34 2002 ++++ wxbasic.y Sun Dec 15 13:21:01 2002 @@ -378,7 +378,7 @@ - { $$ = wOpNode( W_OP_CLOSE, NULL, NULL ); } - - | W_TOKEN_CONST constList sep -- { $$ = $2 } -+ { $$ = $2; } - - | W_TOKEN_COMMON - { if (wCurrentScope != NULL) { + { $$ = 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 + $$ = 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 + 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 + 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
@@ -1328,7 +1328,7 @@ - - printList: - ';' printList -- { $$ = $2 } -+ { $$ = $2; } - - | ',' printList - { $$ = wIntNode( W_OP_PRINT_VALUE, W_PRINT_TAB, NULL, $2 ); } +
+ 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 ); + { 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" ); } - + | '.' '.' '.' ')'
+ { 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; } - ; - +
+ fileHandle
+ : '#' expr
+- { $$ = $2 }
++ { $$ = $2; }
+ | expr
+- { $$ = $1 }
++ { $$ = $1; }
+ ;
+
|