summaryrefslogtreecommitdiff
path: root/pptok.dat
AgeCommit message (Collapse)AuthorFilesLines
2012-03-03preproc: Revert to the NASM 2.09 preprocessorH. Peter Anvin1-6/+0
The NASM 2.09 preprocessor allows some illogical constructs, but which unfortunately has been found in real code in the field. We need a compatibility solution or a pragma before we can avoid that. However, we need the other features in NASM 2.10 to come out, so revert the preprocessor changes for now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2010-11-06preproc.c: merge from preproc-rewrite branchKeith Kanios1-0/+6
pptok.dat: merge from preproc-rewrite branch macros.pl: merge from preproc-rewrite branch version: changed to 2.10rc2
2010-07-13preproc: add %ifenvH. Peter Anvin1-1/+2
Add %ifenv to test for the presence of an environment variable. The environment variable can, but does not have to be, prefixed with %!. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2009-07-14pptok: change %rimacro to %irmacroKeith Kanios1-1/+1
preproc: change PP_RIMACRO to PP_IRMACRO nasmdoc: add entries for %[i]deftok and %[i]rmacro
2009-07-14preproc: add %[i]deftok supportKeith Kanios1-0/+2
pptok: add %deftok and %ideftok preprocessor directives
2009-07-11pptok: add rmacro/rimacroKeith Kanios1-0/+3
preproc: revamp for use with rmacro/rimacro instead of overloading macro/imacro with optional recursion parameter
2009-06-28Add copyright notices to other *.dat filesH. Peter Anvin1-0/+33
Add copyright notices to the other *.dat files. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-09-24%error, %warning out on the final pass, add %fatalH. Peter Anvin1-0/+1
Only process %error or %warning directives on the final pass. Add a new %fatal directive which terminates assembly immediately.
2008-07-16preproc: add %un[i]macro, add cleanupsH. Peter Anvin1-0/+2
Add %un[i]macro, and a few stylistic cleanups. Note: unlike %undef, %un[i]macro takes an argument specification, which must *exactly* match the macro being undefined. Similarly, %unimacro has to be used to undefine a macro defined with %imacro, and vice versa.
2008-07-01preproc: %strcat directive to concatenate quoted stringsH. Peter Anvin1-0/+1
I noticed there was no sane way to concatenate the contents of quoted strings, so add the %strcat directive. These really need to become preprocessor functions at some stage.
2008-06-19preproc: add support for builtin include modules (%use)H. Peter Anvin1-0/+1
Add a builtin equivalent to the %include directive called %use. %use includes a standard macro file compiled into the binary; these come from the macros/ directory in the source code. The idea here is to be able to provide optional macro packages with the distribution, without adding complex host filesystem dependencies.
2008-06-10Add %warning, saner unquoting of %errorH. Peter Anvin1-0/+1
- Add %warning directive - Only unquote an %error or %warning string if it is the only thing on the directive line. - Don't expand macros inside a quoted string, even for %error.
2008-06-04Add %defstr, %idefstrH. Peter Anvin1-0/+2
Add %defstr and %idefstr, to define a macro as a quoted string.
2008-05-30Introduce %depend and %pathsearch, and make incbin a macroH. Peter Anvin1-0/+2
Introduce new preprocessor directives %depend and %pathsearch, and make incbin a standard macro using these filenames. This lets us remove the code that makes incbin search the path.
2008-02-16Add %ifempty and variantsH. Peter Anvin1-1/+2
2008-02-16Implement %iftoken, test for a single tokenH. Peter Anvin1-0/+1
Implement %iftoken, a test for a single token. This is useful in cases using %+ to splice a macro-provided token.
2007-09-12Use a perfect hash to look up preprocessor directivesH. Peter Anvin1-0/+44
Use a perfect hash to look up preprocessor directives, and generate the preprocessor directive list automatically.