aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-12-03 00:22:15 +0800
committermarcus <marcus@FreeBSD.org>2002-12-03 00:22:15 +0800
commit8e97d880df96211d9faf8f5986e9e47eb9af9ef1 (patch)
tree9e03f4375d1bc2fa24ff1fc7d848f8e90fa46b28 /japanese
parentc261cd52b6ab48b99d2fc113ffd98ec978b8da93 (diff)
downloadfreebsd-ports-gnome-8e97d880df96211d9faf8f5986e9e47eb9af9ef1.tar.gz
freebsd-ports-gnome-8e97d880df96211d9faf8f5986e9e47eb9af9ef1.tar.zst
freebsd-ports-gnome-8e97d880df96211d9faf8f5986e9e47eb9af9ef1.zip
Fix build with bison 1.75.
Reported by: bento
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ming/files/patch-src_actioncompiler_swf4compiler.y26
-rw-r--r--japanese/ming/files/patch-src_actioncompiler_swf5compiler.y96
2 files changed, 122 insertions, 0 deletions
diff --git a/japanese/ming/files/patch-src_actioncompiler_swf4compiler.y b/japanese/ming/files/patch-src_actioncompiler_swf4compiler.y
new file mode 100644
index 000000000000..ea4a943ab75e
--- /dev/null
+++ b/japanese/ming/files/patch-src_actioncompiler_swf4compiler.y
@@ -0,0 +1,26 @@
+--- actioncompiler/swf4compiler.y.orig Mon Dec 2 11:10:00 2002
++++ actioncompiler/swf4compiler.y Mon Dec 2 11:12:15 2002
+@@ -119,7 +119,6 @@
+ %type <action> expr_opt
+ %type <action> void_function_call
+ %type <action> function_call
+-%type <action> lhs_expr
+ %type <action> pf_expr
+ %type <action> lhs_expr
+ %type <action> rhs_expr
+@@ -140,6 +139,7 @@
+ program
+ : elems
+ { *((Buffer *)buffer) = $1; }
++ ;
+
+ elems
+ : elem
+@@ -277,6 +277,7 @@
+ bufferWriteS16($3, bufferLength($5));
+ bufferConcat($3, $5);
+ $$ = $3; }
++ ;
+
+ expr_opt
+ : /* empty */ { $$ = NULL; }
diff --git a/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y b/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y
new file mode 100644
index 000000000000..73b1c1812ee3
--- /dev/null
+++ b/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y
@@ -0,0 +1,96 @@
+--- actioncompiler/swf5compiler.y.orig Mon Dec 2 11:13:11 2002
++++ actioncompiler/swf5compiler.y Mon Dec 2 11:18:08 2002
+@@ -37,23 +37,23 @@
+
+ /* tokens etc. */
+
+-%token BREAK, CONTINUE, FUNCTION, ELSE, SWITCH, CASE, FOR, IN, IF, WHILE,
+- DO, VAR, NEW, DELETE, RETURN, END, WITH, ASM, EVAL
++%token BREAK CONTINUE FUNCTION ELSE SWITCH CASE FOR IN IF WHILE
++ DO VAR NEW DELETE RETURN END WITH ASM EVAL
+
+-%token RANDOM, GETTIMER, LENGTH, CONCAT, SUBSTR, TRACE, INT, ORD, CHR, GETURL,
+- GETURL1, NEXTFRAME, PREVFRAME, PLAY, STOP, TOGGLEQUALITY, STOPSOUNDS
++%token RANDOM GETTIMER LENGTH CONCAT SUBSTR TRACE INT ORD CHR GETURL
++ GETURL1 NEXTFRAME PREVFRAME PLAY STOP TOGGLEQUALITY STOPSOUNDS
+
+-%token DUP, SWAP, POP, PUSH, SETREGISTER, CALLFUNCTION, CALLMETHOD,
+- AND, OR, XOR, MODULO, ADD, LESSTHAN, EQUALS,
+- INC, DEC, TYPEOF, ENUMERATE, INITOBJECT, INITARRAY, GETMEMBER,
+- SETMEMBER, SHIFTLEFT, SHIFTRIGHT, SHIFTRIGHT2, VAREQUALS, OLDADD, SUBTRACT,
+- MULTIPLY, DIVIDE, OLDEQUALS, OLDLESSTHAN, LOGICALAND, LOGICALOR, NOT,
+- STRINGEQ, STRINGLENGTH, SUBSTRING, GETVARIABLE, SETVARIABLE,
+- SETTARGETEXPRESSION, DUPLICATEMOVIECLIP, REMOVEMOVIECLIP,
+- STRINGLESSTHAN, MBLENGTH, MBSUBSTRING, MBORD, MBCHR,
+- BRANCHALWAYS, BRANCHIFTRUE, GETURL2, POST, GET,
+- LOADVARIABLES, LOADMOVIE, LOADVARIABLESNUM, LOADMOVIENUM,
+- CALLFRAME, STARTDRAG, STOPDRAG, GOTOFRAME, SETTARGET
++%token DUP SWAP POP PUSH SETREGISTER CALLFUNCTION CALLMETHOD
++ AND OR XOR MODULO ADD LESSTHAN EQUALS
++ INC DEC TYPEOF ENUMERATE INITOBJECT INITARRAY GETMEMBER
++ SETMEMBER SHIFTLEFT SHIFTRIGHT SHIFTRIGHT2 VAREQUALS OLDADD SUBTRACT
++ MULTIPLY DIVIDE OLDEQUALS OLDLESSTHAN LOGICALAND LOGICALOR NOT
++ STRINGEQ STRINGLENGTH SUBSTRING GETVARIABLE SETVARIABLE
++ SETTARGETEXPRESSION DUPLICATEMOVIECLIP REMOVEMOVIECLIP
++ STRINGLESSTHAN MBLENGTH MBSUBSTRING MBORD MBCHR
++ BRANCHALWAYS BRANCHIFTRUE GETURL2 POST GET
++ LOADVARIABLES LOADMOVIE LOADVARIABLESNUM LOADMOVIENUM
++ CALLFRAME STARTDRAG STOPDRAG GOTOFRAME SETTARGET
+
+ %token NULLVAL
+ %token <intVal> INTEGER
+@@ -106,26 +106,26 @@
+ %left '.' '[' ']'
+
+
+-%type <action> program, code
+-%type <action> stmt, stmts
+-%type <action> if_stmt, iter_stmt, cont_stmt, break_stmt, return_stmt
++%type <action> program code
++%type <action> stmt stmts
++%type <action> if_stmt iter_stmt cont_stmt break_stmt return_stmt
+ %type <action> with_stmt
+-%type <action> switch_stmt, switch_cases, switch_case
+-%type <action> anon_function_decl, function_decl, anycode
+-%type <action> void_function_call, function_call, method_call
+-%type <action> assign_stmt, assign_stmts, assign_stmts_opt
+-%type <action> expr, expr_or_obj, objexpr, expr_opt, obj_ref
+-%type <action> emptybraces, level, init_vars, init_var, primary, lvalue_expr
++%type <action> switch_stmt switch_cases switch_case
++%type <action> anon_function_decl function_decl anycode
++%type <action> void_function_call function_call method_call
++%type <action> assign_stmt assign_stmts assign_stmts_opt
++%type <action> expr expr_or_obj objexpr expr_opt obj_ref
++%type <action> emptybraces level init_vars init_var primary lvalue_expr
+ %type <lval> lvalue
+
+-%type <exprlist> expr_list, objexpr_list, formals_list
++%type <exprlist> expr_list objexpr_list formals_list
+
+-%type <op> assignop, incdecop
++%type <op> assignop incdecop
+ %type <getURLMethod> urlmethod
+
+ %type <str> identifier
+
+-%type <len> opcode, opcode_list, push_item, with, push_list
++%type <len> opcode opcode_list push_item with push_list
+
+ /*
+ %type <intVal> integer
+@@ -144,6 +144,7 @@
+ bufferConcat(b, bf);
+ bufferConcat(b, bc);
+ *((Buffer *)buffer) = b; }
++ ;
+
+ code
+ : anycode
+@@ -228,6 +229,7 @@
+ bufferWriteS16($$, 2);
+ bufferWriteS16($$, bufferLength($5));
+ bufferConcat($$, $5); }
++ ;
+
+ expr_opt
+ : /* empty */ { $$ = NULL; }