mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Fix build with bison 1.75.
Reported by: bento
This commit is contained in:
parent
bc90d7e49d
commit
6ed66e03a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71323
26
japanese/ming/files/patch-src_actioncompiler_swf4compiler.y
Normal file
26
japanese/ming/files/patch-src_actioncompiler_swf4compiler.y
Normal file
@ -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; }
|
96
japanese/ming/files/patch-src_actioncompiler_swf5compiler.y
Normal file
96
japanese/ming/files/patch-src_actioncompiler_swf5compiler.y
Normal file
@ -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; }
|
Loading…
Reference in New Issue
Block a user