summaryrefslogtreecommitdiff
path: root/macros.pl
AgeCommit message (Collapse)AuthorFilesLines
2009-06-27Move backend-specific code to output/; break out null debug stuffH. Peter Anvin1-1/+1
Move backend-specific code into the output/ directory, and make the null debugging backend a separate file (it certainly isn't needed for ndisasm...) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-19macros.pl: handle \-continuation lines in macros.plH. Peter Anvin1-0/+6
Correctly handle \-continuation lines in macros.pl. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-09-09macros.pl: don't include macros for disabled output formatsH. Peter Anvin1-4/+13
Don't include macros for output formats we aren't compiling in. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-09-09macros.pl: be a bit more careful with open()H. Peter Anvin1-2/+2
Be a bit more strict with open() calls. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-06-25Make the macros table "unsigned char"H. Peter Anvin1-7/+7
It gets less ugly if we make the macros table "unsigned char".
2008-06-21Drop the index tables from the canned macrosH. Peter Anvin1-18/+37
Instead of an array of strings, just have a character array; that reduces the size of canned macros by up to 30%, and we only did sequential access anyway.
2008-06-20Move the output format macros into the macros.pl mechanismH. Peter Anvin1-5/+25
Move the handling of "extra" macros (i.e. output format macros) into the macros.pl mechanism. This allows us to change the format of the internal macro store in the future - e.g. to a single byte store without redundant pointers. Also, stop using indicies into a long array when there is no good reason to not just use different arrays.
2008-06-19Somewhat more clever way to generate the %use guard macrosH. Peter Anvin1-0/+2
Automatically generate a %define as the first string in the include block, and just pick the string out of it from that %define statement to verify existence. That way we eliminate any use of toupper() -- all case-insensitivity in NASM uses tolower()/nasm_tolower().
2008-06-19%use: call these directives "standard macro packages"H. Peter Anvin1-23/+23
Adopt the term "standard macro packages", "modules" are too ambiguous.
2008-06-19macros.pl: need to use $' to get proper left-to-right behaviourH. Peter Anvin1-5/+5
Using ^(.*) means we do right-to-left search, since (.*) is a greedy expression; instead use $' to get the lead-in part of the string.
2008-06-19macros.pl: remove debug prints; improve compression regexH. Peter Anvin1-6/+3
Remove debug print statements from macros.pl Make sure we test for whitespace at end of statements
2008-06-19macros.c: compress by tokenizing macro directivesH. Peter Anvin1-6/+28
Compress macros.c by representing macro directives with a single byte. We can do this because we only use the ASCII character range inside the standard macro files. Note: we could save significant additional space by not having a pointer array, and instead relying on the fact that we sweep sequentially through the output array.
2008-06-19preproc: add support for builtin include modules (%use)H. Peter Anvin1-22/+100
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-15Mark Perl scripts executableH. Peter Anvin1-0/+0
Be consistent about marking Perl scripts executable, even if we always invoke them with $(PERL) in the Makefiles.
2008-05-26macros.pl: more readable commentsH. Peter Anvin1-5/+5
2008-05-26Add some comments to the output of macros.plH. Peter Anvin1-2/+6
Add some comments to the output of macros.pl, which might make it a little bit easier to debug issues if there should be any.
2008-05-20Avoid #including .c files; instead compile as separate unitsH. Peter Anvin1-4/+5
Don't #include .c files, even if they are auto-generated; instead compile them as separate compilation units and let the linker do its job.
2008-02-16Constipate the stdmac[] array.H. Peter Anvin1-1/+5
2007-12-29regularized spelling of license to match name of LICENSE fileBeroset1-1/+1
2007-10-19Formatting: kill off "stealth whitespace"H. Peter Anvin1-4/+4
"Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
2007-10-02Portability fixesH. Peter Anvin1-1/+1
Concentrate compiler dependencies to compiler.h; make sure compiler.h is included first in every .c file (since some prototypes may depend on the presence of feature request macros.) Actually use the conditional inclusion of various functions (totally broken in previous releases.)
2007-04-13Fixed distinction between char and int8_t data types.Keith Kanios1-1/+1
2007-04-12General push for x86-64 support, dubbed 0.99.00.Keith Kanios1-1/+1
2002-05-19Fix a couple of perl4-isms that are now illegalH. Peter Anvin1-2/+2
2002-05-18uncomment "use strict" in macros.plFrank Kotler1-1/+1
2002-05-14Change "const static" -> "static const" to keep gcc happyH. Peter Anvin1-1/+1
2002-05-14Code cleanup fixes from Ed BerosetH. Peter Anvin1-1/+1
2002-05-04Make all version information come from the single file "version".H. Peter Anvin1-25/+28
Introduce new standard __NASM_SUBMINOR__ and __NASM_VER__ macros.
2002-04-30NASM 0.98.30H. Peter Anvin1-1/+1
2002-04-30NASM 0.98.18H. Peter Anvin1-1/+1
2002-04-30NASM 0.98.12H. Peter Anvin1-1/+1
2002-04-30NASM 0.98.11H. Peter Anvin1-1/+2
2002-04-30NASM 0.98.09H. Peter Anvin1-11/+27
2002-04-30NASM 0.96H. Peter Anvin1-1/+2
2002-04-30NASM 0.95H. Peter Anvin1-0/+27