summaryrefslogtreecommitdiff
path: root/preproc.h
AgeCommit message (Collapse)AuthorFilesLines
2012-05-07preproc: Split get rid of global preproc methodsCyrill Gorcunov1-5/+0
This will allow to hook on updated preprocessor without breaking existing one. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-05-06preproc: Drop never used pp_runtimeCyrill Gorcunov1-1/+0
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2009-06-28Add copyright headers to the *.c/*.h files in the main directoryH. Peter Anvin1-5/+34
Add copyright headers to the *.c/*.h files in the main directory. For files where I'm sure enough that we have all the approvals, I have given them the 2-BSD license, the others have been given the "LGPL for now" license header. Most of them can probably be changed after auditing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-07-19Avoid redundant "const" for macros_tH. Peter Anvin1-1/+1
Don't use a redundant "const" for macros_t (which is const unsigned char), since OpenWatcom doesn't like it, and I believe it is incorrect per the C standard.
2008-06-25Make the macros table "unsigned char"H. Peter Anvin1-1/+1
It gets less ugly if we make the macros table "unsigned char".
2008-06-21pp_directives_len can be uint8_tH. Peter Anvin1-1/+1
Save a few hundred bytes...
2008-06-21Drop the index tables from the canned macrosH. Peter Anvin1-1/+1
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-1/+4
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-19macros.c: compress by tokenizing macro directivesH. Peter Anvin1-0/+1
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-05-30Introduce %depend and %pathsearch, and make incbin a macroH. Peter Anvin1-1/+0
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.
2007-12-29regularized spelling of license to match name of LICENSE fileBeroset1-1/+1
2007-09-12Use a perfect hash to look up preprocessor directivesH. Peter Anvin1-2/+5
Use a perfect hash to look up preprocessor directives, and generate the preprocessor directive list automatically.
2007-04-13Fixed distinction between char and int8_t data types.Keith Kanios1-7/+7
2007-04-12General push for x86-64 support, dubbed 0.99.00.Keith Kanios1-6/+7
2005-01-15Apply Nindent to all .c and .h filesH. Peter Anvin1-6/+6
2003-08-27Alexei's patch to allow "-I" paths to be searched for "incbin"ed filesFrank Kotler1-0/+1
2002-09-12"const"-ipation fixes from Trevor WoernerH. Peter Anvin1-1/+1
2002-04-30NASM 0.98p6H. Peter Anvin1-0/+1
2002-04-30NASM 0.96H. Peter Anvin1-0/+1
2002-04-30NASM 0.95H. Peter Anvin1-0/+4
2002-04-30NASM 0.94H. Peter Anvin1-0/+14