rpms/flasm/devel flasm-1.62-midrule.patch, NONE, 1.1 flasm.spec, 1.7, 1.8
Patrice Dumas
pertusus at fedoraproject.org
Sat Dec 20 22:10:27 UTC 2008
- Previous message (by thread): rpms/kernel/devel patch-2.6.28-rc9-git1.bz2.sign, NONE, 1.1 .cvsignore, 1.970, 1.971 drm-next.patch, 1.4, 1.5 kernel.spec, 1.1175, 1.1176 linux-2.6-pciehp-update.patch, 1.6, 1.7 sources, 1.932, 1.933 upstream, 1.844, 1.845
- Next message (by thread): rpms/flasm/devel flasm.spec,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pertusus
Update of /cvs/extras/rpms/flasm/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18296
Modified Files:
flasm.spec
Added Files:
flasm-1.62-midrule.patch
Log Message:
* Sat Dec 20 2008 Patrice Dumas <pertusus at free.fr> 1.62-4
- patch for new bison, give type for $$ in midrule
flasm-1.62-midrule.patch:
--- NEW FILE flasm-1.62-midrule.patch ---
diff -up flasm-1.62/assembler.y.midrule flasm-1.62/assembler.y
--- flasm-1.62/assembler.y.midrule 2008-12-20 22:44:50.000000000 +0100
+++ flasm-1.62/assembler.y 2008-12-20 22:54:03.000000000 +0100
@@ -605,24 +605,24 @@ finally_opt
trycatchfinally
: TRY name_opt {
- $$ = writeByte(SWFACTION_TRY);
+ $<num>$ = writeByte(SWFACTION_TRY);
/* action length */
- $$ += writeShort(strlen($2)+8);
+ $<num>$ += writeShort(strlen($2)+8);
/* zero flag */
- $$ += writeByte(0);
+ $<num>$ += writeByte(0);
/* zero try length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* zero catch length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* zero finally length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* error variable name */
- $$ += writeString($2);
+ $<num>$ += writeString($2);
}
- statements_opt { $$ = $<num>3 + $4; patchLength($$ - 6, $4); }
- catch_opt { $$ = $<num>5 + $6; patchLength($$ - 8, $6); }
- finally_opt { $$ = $<num>7 + $8; patchLength($$ - 10, $8); }
+ statements_opt { $<num>$ = $<num>3 + $4; patchLength($<num>$ - 6, $4); }
+ catch_opt { $<num>$ = $<num>5 + $6; patchLength($<num>$ - 8, $6); }
+ finally_opt { $<num>$ = $<num>7 + $8; patchLength($<num>$ - 10, $8); }
END {
byte flag = 0;
$$ = $<num>9;
@@ -634,24 +634,24 @@ trycatchfinally
}
| TRY register {
- $$ = writeByte(SWFACTION_TRY);
+ $<num>$ = writeByte(SWFACTION_TRY);
/* action length */
- $$ += writeShort(8);
+ $<num>$ += writeShort(8);
/* zero flag */
- $$ += writeByte(0);
+ $<num>$ += writeByte(0);
/* zero try length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* zero catch length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* zero finally length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* error register number */
- $$ += writeByte((byte) $2);
+ $<num>$ += writeByte((byte) $2);
}
- statements_opt { $$ = $<num>3 + $4; patchLength($$ - 6, $4); }
- catch_opt { $$ = $<num>5 + $6; patchLength($$ - 8, $6); }
- finally_opt { $$ = $<num>7 + $8; patchLength($$ - 10, $8); }
+ statements_opt { $<num>$ = $<num>3 + $4; patchLength($<num>$ - 6, $4); }
+ catch_opt { $<num>$ = $<num>5 + $6; patchLength($<num>$ - 8, $6); }
+ finally_opt { $<num>$ = $<num>7 + $8; patchLength($<num>$ - 10, $8); }
END {
byte flag = 4;
$$ = $<num>9;
@@ -707,25 +707,25 @@ name_opt
function
: FUNCTION name_opt {
- $$ = writeByte(SWFACTION_DEFINEFUNCTION);
+ $<num>$ = writeByte(SWFACTION_DEFINEFUNCTION);
/* zero block length */
- $$ += writeShort(0);
- $$ += writeString($2);
+ $<num>$ += writeShort(0);
+ $<num>$ += writeString($2);
}
'(' function_args ')' {
unsigned int i;
numArgs = $5;
- $$ = $<num>3 + writeShort(numArgs);
+ $<num>$ = $<num>3 + writeShort(numArgs);
for(i = 0; i < numArgs; ++i)
- $$ += writeString(func_args[i]);
+ $<num>$ += writeString(func_args[i]);
/* zero function length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* patch block length */
- patchLength($$-3, $$-3);
+ patchLength($<num>$-3, $<num>$-3);
}
statements_opt END {
@@ -837,25 +837,25 @@ autoregarglist
function2
: FUNCTION2 name_opt {
- $$ = writeByte(SWFACTION_DEFINEFUNCTION2);
+ $<num>$ = writeByte(SWFACTION_DEFINEFUNCTION2);
/* zero block length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* function name */
- $$ += writeString($2);
+ $<num>$ += writeString($2);
curFunc++;
memset(regfunc_args[curFunc], 0, sizeof (regfunc_args[curFunc]));
numArgs = 0;
/* zero num of function arguments */
- $$ += writeShort(numArgs);
+ $<num>$ += writeShort(numArgs);
/* allocate zero registers */
numRegisters[curFunc] = 0;
- $$ += writeByte(numRegisters[curFunc]);
+ $<num>$ += writeByte(numRegisters[curFunc]);
/* zero automatic register flags */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
}
'(' regarglist ')' {
- $$ = $<num>3 + $5;
+ $<num>$ = $<num>3 + $5;
/* patch num of function arguments */
patchLength($5 + 3, numArgs);
autoregFlags = 0;
@@ -866,9 +866,9 @@ function2
byte curautoreg = 1;
unsigned int i;
- $$ = $<num>7;
+ $<num>$ = $<num>7;
/* zero body length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
/* make sure auto registers are allocated in the right order */
for (i = 0; i < MAX_AUTO_REGS; i++) {
@@ -883,9 +883,9 @@ function2
}
/* patch automatic register flags */
- patchLength($$ - $<num>3, autoregFlags);
+ patchLength($<num>$ - $<num>3, autoregFlags);
/* patch block length */
- patchLength($$ - 3, $$ - 3);
+ patchLength($<num>$ - 3, $<num>$ - 3);
}
statements_opt END {
@@ -905,11 +905,11 @@ function2
with
: WITH {
- $$ = writeByte(SWFACTION_WITH);
+ $<num>$ = writeByte(SWFACTION_WITH);
/* length of with action */
- $$ += writeShort(2);
+ $<num>$ += writeShort(2);
/* length of with block - will be patched */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
}
statements_opt END {
@@ -921,9 +921,9 @@ with
settarget
: SETTARGET STRING {
- $$ = writeByte(SWFACTION_SETTARGET);
- $$ += writeShort(strlen($2)+1);
- $$ += writeString($2);
+ $<num>$ = writeByte(SWFACTION_SETTARGET);
+ $<num>$ += writeShort(strlen($2)+1);
+ $<num>$ += writeString($2);
}
statements_opt END {
@@ -934,7 +934,7 @@ settarget
;
settargetexpression
- : SETTARGETEXPR { $$ = writeByte(SWFACTION_SETTARGETEXPRESSION); }
+ : SETTARGETEXPR { $<num>$ = writeByte(SWFACTION_SETTARGETEXPRESSION); }
statements_opt END {
$$ = $3 + writeByte(SWFACTION_SETTARGET);
$$ += $<num>2 + writeShort(1);
@@ -946,9 +946,9 @@ ifframeloadedexpression
: IFFRAMELOADEDEXPR {
if (frameloadedStart>-1)
yyerror("IfFrameLoaded actions can't be nested");
- $$ = writeByte(SWFACTION_IFFRAMELOADEDEXPRESSION);
- $$ += writeShort(1);
- $$ += writeByte(0);
+ $<num>$ = writeByte(SWFACTION_IFFRAMELOADEDEXPRESSION);
+ $<num>$ += writeShort(1);
+ $<num>$ += writeByte(0);
frameloadedStart = numActions;
}
@@ -963,10 +963,10 @@ ifframeloaded
: IFFRAMELOADED INTEGER {
if (frameloadedStart>-1)
yyerror("IfFrameLoaded actions can't be nested");
- $$ = writeByte(SWFACTION_IFFRAMELOADED);
- $$ += writeShort(3);
- $$ += writeShort($2);
- $$ += writeByte(0);
+ $<num>$ = writeByte(SWFACTION_IFFRAMELOADED);
+ $<num>$ += writeShort(3);
+ $<num>$ += writeShort($2);
+ $<num>$ += writeByte(0);
frameloadedStart = numActions;
}
@@ -1199,9 +1199,9 @@ opcode
constant_list_opt { $$ = writeConstants(); }
| PUSH {
- $$ = writeByte(SWFACTION_PUSHDATA);
+ $<num>$ = writeByte(SWFACTION_PUSHDATA);
/* length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
}
push_list {
@@ -1212,10 +1212,10 @@ opcode
| SWFACTION HEX {
if (xtoi($2)>0xff)
yyerror("Action code out of range");
- $$ = writeByte((char)xtoi($2));
+ $<num>$ = writeByte((char)xtoi($2));
if (xtoi($2)>=0x80)
/* length */
- $$ += writeShort(0);
+ $<num>$ += writeShort(0);
}
hexlist_opt {
Index: flasm.spec
===================================================================
RCS file: /cvs/extras/rpms/flasm/devel/flasm.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- flasm.spec 19 Feb 2008 18:12:47 -0000 1.7
+++ flasm.spec 20 Dec 2008 22:09:57 -0000 1.8
@@ -1,6 +1,6 @@
Name: flasm
Version: 1.62
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Flash bytecode assembler disassembler
Group: Development/Tools
@@ -10,6 +10,7 @@
#Source0: http://www.nowrap.de/download/flasm16src.zip
Source0: flasm162src.zip
Source1: http://shield.jp/~dseg/rpms/flasm/flasm.1.gz
+Patch0: flasm-1.62-midrule.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bison gperf flex zlib-devel
@@ -23,6 +24,7 @@
%prep
%setup -q -c
+%patch0 -p1 -b .midrule
# cleanup perms and end of lines
chmod -x *.TXT assembler.flex assembler.y *.c *.h *.ini Makefile \
keywords.gperf logo.gif classic.css flasm.html
@@ -68,6 +70,9 @@
%changelog
+* Sat Dec 20 2008 Patrice Dumas <pertusus at free.fr> 1.62-4
+- patch for new bison, give type for $$ in midrule
+
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.62-4
- Autorebuild for GCC 4.3
- Previous message (by thread): rpms/kernel/devel patch-2.6.28-rc9-git1.bz2.sign, NONE, 1.1 .cvsignore, 1.970, 1.971 drm-next.patch, 1.4, 1.5 kernel.spec, 1.1175, 1.1176 linux-2.6-pciehp-update.patch, 1.6, 1.7 sources, 1.932, 1.933 upstream, 1.844, 1.845
- Next message (by thread): rpms/flasm/devel flasm.spec,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list