Module Name: pcc
Committed By: plunky
Date: Wed Nov 7 09:52:00 UTC 2012
Modified Files:
pcc/cc/cpp: cpp.c cpp.h token.c
Log Message:
combination of changes
- reorder the input functions and split some functionality
- use inline for minimal inch() and inpch()
- only use inpch() from within inch()/chktg()/chkeol()
- use inch() directly instead of NXTCH() macro or inpch()
- '?' and '\\' no longer need to be C_SPEC
- escaped newlines absorbed by inch()
- only fastscan() emits normal newline (except during comments)
- fastscan() emits escaped newlines at end of line
- no need to emit line markers after conditional markers
- simplify conditional statement processing
- error() consistency
resulting in
+ trigraphs and escaped newline always processed
+ output line count same as input
+ 10-15% speedup of raw processing!
To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 pcc/cc/cpp/cpp.c
cvs rdiff -u -r1.65 -r1.66 pcc/cc/cpp/cpp.h
cvs rdiff -u -r1.101 -r1.102 pcc/cc/cpp/token.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.