summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-20One more comment-handling bug found by Iain Hibbert.HEADmasterragge1-0/+1
2010-04-20Forgot to null-terminate yytext. Bug pointed out by Iain Hibbert.ragge1-0/+1
2010-04-18Discard comments in yylex() so that -C works even with comments inragge1-2/+18
#if directives. Supposes to fix Jira#PCC-126 by Iain Hibbert.
2010-04-05Fix broken markup in manpages (from plunky on pcc-list).reed1-1/+1
2010-03-24Allow # alone on lines, as requested by Mickey.ragge1-0/+4
2010-02-25Fix const usage. From Iain Hibbert.ragge4-63/+66
2009-12-31Print out an extra \n before emitting a new line-file directive.ragge1-1/+1
Solves Jira#PCC-97 by Gregory McGarry.
2009-12-31Understand gcc directive #include_next. Solves Jira#PCC-106 by Altamiranus.ragge3-19/+59
2009-09-02Remove prototype which is later declared static. Fixes build with -Werror.gmcgarry1-1/+0
2009-08-23Do not match \r in fastscan. Fixes Jira#PCC-87 but in a different way.ragge1-1/+1
2009-08-15Must expand identifier in #include directive. sloscan() don't do it andragge1-1/+12
yylex() will return a NUMBER. Fixes Jira#PCC-76 by Detlef Riekenberg.
2009-08-13Handling of character constants in #if expressions broke when the preprocessorragge1-4/+8
were changed recently. Fixes Jira#PCC-77 by Detlef Riekenberg.
2009-08-13Add -Wtruncate option which detects truncation of types during assignment.gmcgarry2-24/+26
Let pcc compile with this option enabled. Inspired by similar warning in the Microsoft compiler.
2009-08-11Substitute \n for ' ' in argument lists, otherwise there will be unwantedragge1-0/+1
concatenated arguments. Fixes bug reported by Hasso Tepper.
2009-08-09Print out a \n before prtline() in an #endif, otherwise we may end up withragge1-1/+3
an illegal statement. Bug found by Jonathan Gray.
2009-08-09Line endings with \ were not concatenated to next line iside strings.ragge1-3/+2
Bug spotted by Jonathan Gray.
2009-08-09Add dependencies so that "make -j 42" can be run. Fixes Jira#PCC-71ragge1-0/+1
submitted by Jussi Lehtola.
2009-08-08Ignore character constants in traditional mode. Should help Jira#PCC-4.ragge1-0/+2
2009-08-08Must accept identifiers beginning with a digit in macro expansion, so thatragge1-1/+18
macro replacement of concatenated strings work. Actually this fix also solved a long-standing problem. Fixes Jira#PCC-69 by Jonathan Gray.
2009-08-07Check for \t was accidentally written \n, causing #<tab>define to fail.ragge1-1/+1
Fixes Jira#PCC-68 reported by Jonathan Gray.
2009-08-07Fix bug where string with escaped char would not terminate. Fixes bugragge1-11/+11
reported by Alt.
2009-08-04Always print out a \n after a directive that turned false, to avoidragge1-15/+30
indented # line directives to cc. Fixes Jira#PCC-66.
2009-08-01Significant update of cpp, now runs in only around 10% time compared to before.ragge7-606/+597
2009-05-22Fix badly placed BEGIN/yylex(). Caused some #ifdefs not to be handled.ragge1-1/+2
2009-04-20Increase pushback buffer to CPPBUF size. Fixes #PCC-51.ragge1-1/+1
2009-04-19Avoid build failure: isdigit() expects an integer argument.gmcgarry1-1/+1
2009-04-18Switch over to use token.c instead och abusing lex for tokenizing.ragge1-1/+1
This is a home-grown implementation (which is a quite straight-forward conversion of the scanner lex code) that is significantly faster (and smaller) than the lex code. There are still a bunch of places where more optimizations can be added though.
2009-04-14Make this compile with YYTEXT_POINTER.gmcgarry1-0/+6
2009-04-12Build on solaris 10.gmcgarry1-1/+1
2009-03-12Check if pushback buffer overflows.ragge1-3/+12
Tokens beginning with a digit may be an IDENT. Now seems to work as well as at least the old parser.
2009-03-09Fix a few \n bugs.ragge1-7/+14
2009-03-08Start the slow move towards a better cpp. This tokenizer is work-in-progress.ragge1-335/+995
2009-02-14Accept continuation lines followed by \r\n (msdos style). Fixes Jira#PCC-32.ragge1-2/+3
2009-01-31Assign return values from write() to a variable even if the value isragge1-5/+7
uninteresting. Fixes problem when write() has attribute warn_unused_result (like on ubuntu). Reported by Darren Jenkins.
2009-01-08Limit the size of CPPBUF on win32, which was causing read() to always fail.gmcgarry1-1/+4
2008-12-07Compile with gcc -c99. From Thorsten Glaser.gmcgarry1-4/+2
2008-11-24Add compile-time option to print out time used in execution.ragge1-0/+17
Only used during testing and debugging.
2008-08-21Accept // as comment in #if directives, as pointed out by Daniel Dickman.ragge1-0/+4
2008-08-18Fix bug causing an identifier with the same name as a function-like macroragge1-26/+22
to be moved to the beginning of next line if it is last on the previous.
2008-08-18Fix bug where stray non-alphanumeric character after # would causeragge1-0/+9
cpp to fail. Bug reported by Artur Grabowski.
2008-08-16Must delay _Pragma -> #pragma conversion until printout, otherwiseragge2-14/+58
the pragma stmt may end up at the wrong place. Spotted by gmcgarry.
2008-08-15Understand the ##arg syntax for gnu cpp.ragge1-1/+28
2008-08-10Remove use of alloca() altogether in favour for malloc()/free().ragge1-16/+22
2008-08-09Substitute EXEEXT from autoconf.gmcgarry1-0/+1
2008-08-08Also try to find alloca() declaration in malloc.h.gmcgarry1-0/+3
2008-08-08Append $(EXEEXT) to binary names.gmcgarry1-1/+1
2008-08-08Increase the flex buffer to 512k; even if C99 only supports 4k there areragge1-1/+1
people that write 450k macros.
2008-07-29Fix bug where double macro expansion could cause an internal error.ragge1-0/+2
Reported by gmcgarry.
2008-07-25Use full path to manpages so pcc can be build out of the source tree.gmcgarry1-1/+1
2008-07-18Cleanup CFLAGS and CPPFLAGS handling. Only pass include paths and defines ↵gmcgarry1-2/+2
to cpp and flags to cc. Always use CFLAGS. Add ADD_CFLAGS which adds extra warnings to build. From Thorsten Glaser.