summaryrefslogtreecommitdiff
path: root/scanner.l
AgeCommit message (Expand)AuthorFilesLines
2009-02-14Accept continuation lines followed by \r\n (msdos style). Fixes Jira#PCC-32.ragge1-2/+3
2008-08-21Accept // as comment in #if directives, as pointed out by Daniel Dickman.ragge1-0/+4
2008-08-18Fix bug where stray non-alphanumeric character after # would causeragge1-0/+9
2008-08-16Must delay _Pragma -> #pragma conversion until printout, otherwiseragge1-2/+17
2008-08-08Increase the flex buffer to 512k; even if C99 only supports 4k there areragge1-1/+1
2008-07-02Add -P flag to inhibit line markers in output. Compatible with gcc flag.gmcgarry1-1/+1
2008-06-30Cast yytext to usch before passing to charcon().gmcgarry1-1/+1
2008-06-29Let macros inside character constants be expanded if traditional.ragge1-9/+11
2008-06-25Must handle as octal if number begins with 0 when expanding macros also.ragge1-1/+6
2008-05-11Spelling error, from Pierre Riteau.ragge1-1/+1
2008-04-19open(2) can fail with many different errors (ENOTDIR, EPERM, ...) so weragge1-5/+1
2008-04-15Test for header before inclusion. Test on availability of variadic macros.gmcgarry1-1/+7
2008-04-13Always discard comments after #if directives.ragge1-1/+13
2008-04-12Fix -C so that comments also follows defined macros. Now lint can haveragge1-8/+18
2008-04-09Do not output comments inside #if 0 areas if -C is given.ragge1-6/+6
2008-03-18Fix the dangling-else to avoid compiler warnings.gmcgarry1-1/+2
2008-02-26Warn but don't exit with junk after #endif or #else.reed1-7/+14
2008-01-15Do not allow use of preprocessing directives inside expandingragge1-1/+8
2008-01-08Teach cpp about comments in ifdefs.ragge1-2/+12
2007-11-19Bugfixes from Jan Kryl:ragge1-6/+18
2007-11-15Only decode numbers if state == IFR.ragge1-1/+1
2007-11-15Hex and octal numbers should be converted to unsigned if they do not fitragge1-0/+2
2007-11-10++ and -- are not allowed in preprocessor expressions. Based on astefan1-0/+9
2007-10-25Fix preprocessor number overflow check, by Jan Kryl.ragge1-5/+13
2007-10-18More fixes to cpp arithmetic, sanitychecked by otto and stefan.ragge1-42/+14
2007-10-12rewrite of constant expression evaluation; taking into accountotto1-7/+40
2007-10-07Don't let pragmas pass through if #ifdef'd away, from Stefan Kempf.ragge1-2/+5
2007-10-04Move compat functions to their own header. From Laurent Desnogues.ragge1-1/+2
2007-09-28Add missing BEGIN, from Otto Moerbeek.ragge1-1/+1
2007-09-25Handle #pragma and _Pragma() correct.ragge1-2/+8
2007-09-20strl* changes, from Gilles Chehade.ragge1-3/+5
2007-09-19Quiet cc about missing prototypes. From Olof Johansson.ragge1-0/+3
2007-09-17Add -dM for preprocessor, by Todd T. Fries.ragge1-11/+6
2007-09-16Allow for non-whitespace between #if and (0)ragge1-2/+2
2007-09-09Make alignment run-time detected.ragge1-0/+1
2007-09-09Bugfix number calculations.ragge1-0/+53
2007-08-19Fix bug with empty # on a line.ragge1-19/+41
2007-08-08Add -M flag for writing dependencies.ragge1-7/+14
2007-08-01Fix bug causing #line directives to get stuck in an endless loop.ragge1-1/+2
2007-02-10Ignore CR on input.ragge1-1/+3
2007-01-15Ignore unknown preprocessor directives.ragge1-2/+8
2007-01-02Be able to handle multiline comments starting at an #if line.ragge1-1/+6
2006-10-08Rewrite handling of defined(...).ragge1-30/+85
2006-10-08Cleanup usch usage.ragge1-19/+19
2006-10-07Fix hex conversion bug.ragge1-0/+2
2006-10-07Fix num2str, it generated backwards strings. Store strings on heap.ragge1-2/+4
2006-10-07Fix flex identification.ragge1-0/+1
2006-10-07Rewriting finished. The scanner do not even need stdio now.ragge1-393/+154
2006-09-28Large rewrite of the preprocessor. Now uses lex for tokenizing, andragge1-0/+890