diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-13 11:06:42 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-13 11:06:42 -0700 |
commit | 1a6e76d682a03d92e90446b98a1302c13754b0fa (patch) | |
tree | 60031e0019119267a66d92702f996eb9e98577ef | |
parent | 388b3ab3a37e0ac6a019fbf5f952aac4c37c77f9 (diff) | |
download | nasm-1a6e76d682a03d92e90446b98a1302c13754b0fa.tar.gz |
pptok.c: don't insist on C99 compiler behaviour
Declarations that are not at the head is C99 behaviour, but it's
rather pointless for this little piece of code. Fix to work with
older compilers.
-rwxr-xr-x | pptok.pl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -189,9 +189,10 @@ if ($what eq 'c') { print OUT "\n"; print OUT " while ((c = *p++) != 0) {\n"; + print OUT " uint32_t kn1, kn2;\n"; print OUT " c |= 0x20; /* convert to lower case */\n"; - printf OUT " uint32_t kn1 = rot(k1,%2d) - rot(k2,%2d) + c;\n", ${$sv}[0], ${$sv}[1]; - printf OUT " uint32_t kn2 = rot(k2,%2d) - rot(k1,%2d) + c;\n", ${$sv}[2], ${$sv}[3]; + printf OUT " kn1 = rot(k1,%2d) - rot(k2,%2d) + c;\n", ${$sv}[0], ${$sv}[1]; + printf OUT " kn2 = rot(k2,%2d) - rot(k1,%2d) + c;\n", ${$sv}[2], ${$sv}[3]; print OUT " k1 = kn1; k2 = kn2;\n"; print OUT " }\n"; print OUT "\n"; |