aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pre-process.c
AgeCommit message (Expand)AuthorFilesLines
2005-04-07Introduce a "struct position", and have the different types referLinus Torvalds1-65/+65
2005-04-07Clean up type handling in a big way. Don't leave thoseLinus Torvalds1-1/+1
2005-04-07Handle __LINE__ and __FILE__ in pre-processor.Linus Torvalds1-0/+24
2005-04-07Make the includepath be an array of "const char *"Linus Torvalds1-2/+2
2005-04-07Add preprocessor directives to manipulate the include path.Linus Torvalds1-0/+51
2005-04-07Split the compile time constant evaluation up intoLinus Torvalds1-91/+1
2005-04-07Move expression data structures to "expression.h", they gotLinus Torvalds1-0/+1
2005-04-07Uhuh. Fix stupid thinko in insertion of macro expansion.Linus Torvalds1-4/+3
2005-04-07Remove unused variableLinus Torvalds1-1/+0
2005-04-07Don't expand arguments that are preceded by '#' or preceded or followedLinus Torvalds1-3/+6
2005-04-07Fix stringify that got broken by other changesLinus Torvalds1-1/+0
2005-04-07Teach ## expansion about the magic gcc behaviour: x ## arg goesLinus Torvalds1-0/+24
2005-04-07Fix recursive expansion of preprocessor macros. Linus Torvalds1-50/+47
2005-04-07Handle '#' properly (well, _more_ properly) in macro expansion.Linus Torvalds1-9/+28
2005-04-07Fix showing of tokens - whitespace messed up.Linus Torvalds1-2/+4
2005-04-07Remove global argument/arglist pointers, and pass them properly asLinus Torvalds1-11/+24
2005-04-07Make the naming in expand_arguments() match the othersLinus Torvalds1-2/+2
2005-04-07Move includepath[] array out of pre-processor, since we wantLinus Torvalds1-9/+1
2005-04-07Parse enum declarations, and associate the enum's with theLinus Torvalds1-9/+29
2005-04-07Add copyright statements and file comments. Add a FAQ, README, andLinus Torvalds1-0/+2
2005-04-07Fix constant expression parsing (a constant expression canLinus Torvalds1-2/+2
2005-04-07Bind symbols when declared. Bind arguments to functions.Linus Torvalds1-4/+4
2005-04-07Parse __alignof__ (although right now it ends up parsing as aLinus Torvalds1-3/+0
2005-04-07First cut at retokenization (ie 'a ## b') in macro expansion.Linus Torvalds1-0/+101
2005-04-07Fix up whitespace for token expansion to make printout prettier.Linus Torvalds1-0/+1
2005-04-07Avoid re-tokenizing header files that are protected byLinus Torvalds1-3/+26
2005-04-07Start tracking whether a stream may be constant or not. Very experimental.Linus Torvalds1-24/+40
2005-04-07Make the tokenizer insert begin/end tokens at stream boundaries,Linus Torvalds1-3/+12
2005-04-07Re-name the "action" thing as something saner - it's now a "stream".Linus Torvalds1-3/+13
2005-04-07Fix fd leak in tokenization.Linus Torvalds1-0/+1
2005-04-07Tokenization drops whitespace, but there is one area where it isLinus Torvalds1-2/+7
2005-04-07This gets us up and parsing through a lot of the regular header files:Linus Torvalds1-7/+15
2005-04-07Do preprocessor macro argument substitution.Linus Torvalds1-1/+72
2005-04-07Make preprocessor expansion a hell of a lot more readable byLinus Torvalds1-25/+35
2005-04-07Parse the incoming argument list for macro expansion.Linus Torvalds1-2/+28
2005-04-07Add scaffolding for argument handling of macros. Very preliminary.Linus Torvalds1-9/+28
2005-04-07Make the preprocessor use the C parser, and then evaluate preprocessorLinus Torvalds1-113/+132
2005-04-07Properly expand tokens on #if/#elif/#include preprocessor linesLinus Torvalds1-34/+55
2005-04-07Argh, fix the pre-processor expression parsing warning to warnLinus Torvalds1-3/+3
2005-04-07Make preprocessor errors more readable, to help adding theLinus Torvalds1-1/+1
2005-04-07Do proper recursive expansion, with the right avoidance of infiniteLinus Torvalds1-10/+30
2005-04-07Fix stream naming on include - we need to allocate stable storage for itLinus Torvalds1-2/+5
2005-04-07Fix 'elif' semantics: if we've ever seen a previous if that matched,Linus Torvalds1-10/+12
2005-04-07Move some common parsing routines to "lib", so thattheLinus Torvalds1-1/+124
2005-04-07Teach the preprocessing pass to handle 'include' and Linus Torvalds1-2/+97
2005-04-07Do much more pre-processing work: support #ifdef/#else/#endifLinus Torvalds1-21/+196
2005-04-07Preprocessor symbol handling: handle simple cases of #define andLinus Torvalds1-8/+83
2005-04-07Add initial preprocessor pass (doesn't actually do much)Linus Torvalds1-0/+51