Discussion:
CVS commit: pcc/cc/cpp
Iain Hibbert
2012-10-25 19:59:24 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Thu Oct 25 19:59:24 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
fix line counts when outputting multi-line comment blocks with -C,
(don't output the newline twice)


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:05:35 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:05:35 UTC 2012

Modified Files:
pcc/cc/cpp: cpp.c

Log Message:
prtline() after a successful #line directive, so that downstream
knows which lineno/filename to use.


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 pcc/cc/cpp/cpp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:07:21 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:07:21 UTC 2012

Modified Files:
pcc/cc/cpp: cpp.c

Log Message:
use "#directive" in error messages, for clarity


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 pcc/cc/cpp/cpp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:12:46 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:12:46 UTC 2012

Modified Files:
pcc/cc/cpp: cpp.c

Log Message:
for include(), correct filename processing
- handle wide-string filenames
(this is not part of spec, but sloscan() will return them, so..)
- handle EOF and NL inside <..>


To generate a diff of this commit:
cvs rdiff -u -r1.182 -r1.183 pcc/cc/cpp/cpp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:23:13 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:23:13 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
slight simplifications in fastscan()..
- where a condition resulted in a jump, no need to use else
- for eatcmnt(), don't bother testing for EOF.. it will be
discovered immediately in any case


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:26:23 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:26:23 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
for unch(), if a -1 was passed, just ignore it..
(otherwise it will be returned shortly as an 0xff)


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:48:01 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:48:01 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
various EOF
inch() returns -1 for EOF; try not to store or use that as array index
sloscan() returns 0 for EOF


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:55:51 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:55:51 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
brackets around & operation


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-29 17:59:16 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 29 17:59:16 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
use WARN macro, instead of '1'


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-31 11:54:54 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 31 11:54:54 UTC 2012

Modified Files:
pcc/cc/cpp: cpp.c cpp.h token.c

Log Message:
modify spechr[] to also know about digits, hex digits etc, and
use it directly instead of <ctype.h>


To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 pcc/cc/cpp/cpp.c
cvs rdiff -u -r1.64 -r1.65 pcc/cc/cpp/cpp.h
cvs rdiff -u -r1.96 -r1.97 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-31 12:13:43 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 31 12:13:43 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
simplify logic in ppdir(), and error() for invalid directive


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-02 06:51:53 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Nov 2 06:51:52 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
after +- stay in the pp-number loop. eg when parsing
123.4e+foo
foo is not a separate token..


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-02 09:01:24 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Nov 2 09:01:24 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
handle comments on preprocessor directive lines
(needed to build binutils)


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-02 10:55:45 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Nov 2 10:55:45 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
move flslvl++ side effect out of skpln()


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-07 09:52:00 UTC
Permalink
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.
Iain Hibbert
2012-11-07 09:57:02 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Nov 7 09:57:02 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
remove spurious }


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-07 09:59:45 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Nov 7 09:59:45 UTC 2012

Modified Files:
pcc/cc/cpp: Makefile.in
pcc/cc/cpp/tests: res16 test16
Added Files:
pcc/cc/cpp/tests: res16C res17 test17

Log Message:
- update test16 for newline counting test
- add res16C for newline counting with -C
- add test17 for parsing of pp-numbers


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pcc/cc/cpp/Makefile.in
cvs rdiff -u -r1.1 -r1.2 pcc/cc/cpp/tests/res16 pcc/cc/cpp/tests/test16
cvs rdiff -u -r0 -r1.1 pcc/cc/cpp/tests/res16C pcc/cc/cpp/tests/res17 \
pcc/cc/cpp/tests/test17

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-07 10:03:58 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Nov 7 10:03:58 UTC 2012

Modified Files:
pcc/cc/cpp: Makefile.in

Log Message:
replace the 'test' target with a loop


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 pcc/cc/cpp/Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-08 11:08:38 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Thu Nov 8 11:08:38 UTC 2012

Modified Files:
pcc/cc/cpp: cpp.c

Log Message:
lastoch is usch


To generate a diff of this commit:
cvs rdiff -u -r1.185 -r1.186 pcc/cc/cpp/cpp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-08 11:11:36 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Thu Nov 8 11:11:36 UTC 2012

Modified Files:
pcc/cc/cpp: token.c

Log Message:
warn about unterminated string literals & character constants


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 pcc/cc/cpp/token.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-11-08 11:14:03 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Thu Nov 8 11:14:03 UTC 2012

Modified Files:
pcc/cc/cpp: cpp.1 cpp.c

Log Message:
add an "-E" option, to cause exit failure for warnings


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pcc/cc/cpp/cpp.1
cvs rdiff -u -r1.186 -r1.187 pcc/cc/cpp/cpp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Loading...