summaryrefslogtreecommitdiff
path: root/multimedia/ming/patches/patch-ag
blob: 0c2a615b4f752fe189c574606188e37aee122601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ag,v 1.1 2008/12/17 08:19:53 taca Exp $

This is fix for bison 2.4 and later.

--- src/actioncompiler/swf5compiler.y.orig	2006-02-09 07:48:38.000000000 +0900
+++ src/actioncompiler/swf5compiler.y
@@ -1795,7 +1795,7 @@ opcode_list
 
 with
 	: WITH
-				{ $$ = bufferWriteOp(asmBuffer,
+				{ $<len>$ = bufferWriteOp(asmBuffer,
 						     SWFACTION_WITH); }
 	  opcode_list END	{ $$ = $<len>2 + $3;
 				  bufferPatchLength(asmBuffer, $3); }
@@ -1828,9 +1828,9 @@ push_list
 	;
 
 opcode
-	: PUSH 			{ $$ = bufferWriteOp(asmBuffer,
+	: PUSH 			{ $<len>$ = bufferWriteOp(asmBuffer,
 						     SWFACTION_PUSH);
-				  $$ += bufferWriteS16(asmBuffer, 0); }
+				  $<len>$ += bufferWriteS16(asmBuffer, 0); }
 	  push_list		{ $$ = $<len>2 + $3;
 				  bufferPatchLength(asmBuffer, $3); }