Changeset View
Changeset View
Standalone View
Standalone View
japanese/ming/files/patch-src_actioncompiler_swf5compiler.y
--- actioncompiler/swf5compiler.y.orig 2009-03-06 11:34:48.000000000 +0100 | --- actioncompiler/swf5compiler.y.orig 2002-06-24 12:21:54 UTC | ||||
+++ actioncompiler/swf5compiler.y 2009-03-06 11:37:13.000000000 +0100 | +++ actioncompiler/swf5compiler.y | ||||
@@ -8,12 +8,12 @@ | |||||
#include "compile.h" | |||||
#include "assembler.h" | |||||
-#define YYPARSE_PARAM buffer | |||||
- | |||||
Buffer bf, bc; | |||||
%} | |||||
+%parse-param {void *buffer} | |||||
+ | |||||
%union | |||||
{ | |||||
Buffer action; | |||||
@@ -239,7 +239,7 @@ expr_opt | @@ -239,7 +239,7 @@ expr_opt | ||||
switch_stmt | switch_stmt | ||||
: SWITCH '(' expr ')' '{' | : SWITCH '(' expr ')' '{' | ||||
- { $$ = $3; } | - { $$ = $3; } | ||||
+ { $<action>$ = $3; } | + { $<action>$ = $3; } | ||||
switch_cases '}' | switch_cases '}' | ||||
{ bufferConcat($$, $7); | { bufferConcat($$, $7); | ||||
Show All 22 Lines |