mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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
This commit is contained in:
parent
2672af7379
commit
b307a4f1eb
@ -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
|
||||
#
|
||||
|
@ -50,20 +50,25 @@
|
||||
%arg
|
||||
%assign
|
||||
%clear
|
||||
%comment
|
||||
%define
|
||||
%defstr
|
||||
%deftok
|
||||
%depend
|
||||
%elif*
|
||||
%else
|
||||
%endcomment
|
||||
%endif
|
||||
%endm
|
||||
%endmacro
|
||||
%endrep
|
||||
%endwhile
|
||||
%error
|
||||
%exitmacro
|
||||
%exitrep
|
||||
%exitwhile
|
||||
%fatal
|
||||
%final
|
||||
%iassign
|
||||
%idefine
|
||||
%idefstr
|
||||
@ -92,4 +97,5 @@
|
||||
%unmacro
|
||||
%use
|
||||
%warning
|
||||
%while*
|
||||
%xdefine
|
||||
|
Loading…
Reference in New Issue
Block a user