summaryrefslogtreecommitdiff
path: root/macros.pl
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2010-11-06 17:41:51 -0500
committerKeith Kanios <keith@kanios.net>2010-11-06 17:41:51 -0500
commitb307a4f1eb9c481732f80088ceceba6a63ccfe4d (patch)
treee71cd3b0ebfff689ff50122258c0460d16df0cc5 /macros.pl
parent2672af737954fb17ec0ebf17e787219a504c4400 (diff)
downloadnasm-b307a4f1eb9c481732f80088ceceba6a63ccfe4d.tar.gz
nasm-b307a4f1eb9c481732f80088ceceba6a63ccfe4d.tar.bz2
nasm-b307a4f1eb9c481732f80088ceceba6a63ccfe4d.zip
preproc.c: merge from preproc-rewrite branch
pptok.dat: merge from preproc-rewrite branch macros.pl: merge from preproc-rewrite branch version: changed to 2.10rc2
Diffstat (limited to 'macros.pl')
-rwxr-xr-xmacros.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/macros.pl b/macros.pl
index 911da8d..14524ec 100755
--- a/macros.pl
+++ b/macros.pl
@@ -57,12 +57,14 @@ sub charcify(@) {
if ($o < 32 || $o > 126 || $c eq '"' || $c eq "\\") {
$l .= sprintf("%3d,", $o);
} else {
+ $c =~ s/\'/\\'/; # << sanitize single quote.
$l .= "\'".$c."\',";
}
}
return $l;
}
+
#
# Generate macros.c
#