diff options
author | Keith Kanios <keith@kanios.net> | 2010-11-06 17:41:51 -0500 |
---|---|---|
committer | Keith Kanios <keith@kanios.net> | 2010-11-06 17:41:51 -0500 |
commit | b307a4f1eb9c481732f80088ceceba6a63ccfe4d (patch) | |
tree | e71cd3b0ebfff689ff50122258c0460d16df0cc5 /macros.pl | |
parent | 2672af737954fb17ec0ebf17e787219a504c4400 (diff) | |
download | nasm-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-x | macros.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 # |