Changeset View
Changeset View
Standalone View
Standalone View
japanese/ming/files/patch-src_actioncompiler_swf4compiler.y
--- actioncompiler/swf4compiler.y.orig Mon Dec 2 11:10:00 2002 | --- actioncompiler/swf4compiler.y.orig 2002-06-24 12:21:54 UTC | ||||
+++ actioncompiler/swf4compiler.y Mon Dec 2 11:12:15 2002 | +++ actioncompiler/swf4compiler.y | ||||
@@ -6,10 +6,10 @@ | |||||
#include <string.h> | |||||
#include "compile.h" | |||||
-#define YYPARSE_PARAM buffer | |||||
- | |||||
%} | |||||
+%parse-param {void *buffer} | |||||
+ | |||||
%union { | |||||
Buffer action; | |||||
char *str; | |||||
@@ -119,7 +119,6 @@ | @@ -119,7 +119,6 @@ | ||||
%type <action> expr_opt | %type <action> expr_opt | ||||
%type <action> void_function_call | %type <action> void_function_call | ||||
%type <action> function_call | %type <action> function_call | ||||
-%type <action> lhs_expr | -%type <action> lhs_expr | ||||
%type <action> pf_expr | %type <action> pf_expr | ||||
%type <action> lhs_expr | %type <action> lhs_expr | ||||
%type <action> rhs_expr | %type <action> rhs_expr | ||||
@@ -140,6 +139,7 @@ | @@ -140,6 +139,7 @@ | ||||
program | program | ||||
: elems | : elems | ||||
{ *((Buffer *)buffer) = $1; } | { *((Buffer *)buffer) = $1; } | ||||
+ ; | + ; | ||||
elems | elems | ||||
: elem | : elem | ||||
@@ -277,6 +277,7 @@ | @@ -277,6 +277,7 @@ if_stmt | ||||
bufferWriteS16($3, bufferLength($5)); | bufferWriteS16($3, bufferLength($5)); | ||||
bufferConcat($3, $5); | bufferConcat($3, $5); | ||||
$$ = $3; } | $$ = $3; } | ||||
+ ; | + ; | ||||
expr_opt | expr_opt | ||||
: /* empty */ { $$ = NULL; } | : /* empty */ { $$ = NULL; } |