Discussion:
CVS commit: pcc/cc/cpp
Iain Hibbert
2012-10-17 09:52:52 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 09:52:52 UTC 2012

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

Log Message:
don't rely on the linker merging common definitions


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 pcc/cc/cpp/cpp.c
cvs rdiff -u -r1.61 -r1.62 pcc/cc/cpp/cpp.h
cvs rdiff -u -r1.80 -r1.81 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-17 10:14:44 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 10:14:44 UTC 2012

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

Log Message:
add xwrite() which actually ensures a write succeeds, rather
than using a dummy variable to defeat return value checking


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 pcc/cc/cpp/cpp.c
cvs rdiff -u -r1.62 -r1.63 pcc/cc/cpp/cpp.h
cvs rdiff -u -r1.81 -r1.82 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-17 10:25:49 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 10:25:49 UTC 2012

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

Log Message:
use the common idiom


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 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-17 10:29:10 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 10:29:10 UTC 2012

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

Log Message:
simplify prtline() as sheap() is cumulative.. we can just output once


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 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-17 10:33:13 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 10:33:13 UTC 2012

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

Log Message:
fix comment (sheap does %c)
also, sheap can call error(), as long as it doesn't try to use an
unknown format type


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 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-17 10:38:00 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 10:38:00 UTC 2012

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

Log Message:
don't put a line break in a warning message


To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.177 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-17 10:41:20 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Wed Oct 17 10:41:20 UTC 2012

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

Log Message:
if we don't have C99 __VA_ARGS__ macro, then error() will not
actually work (apart from bringing in stdio stuff), so just use
stdarg for error() and warning(), calling vsheap() internally


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 pcc/cc/cpp/cpp.c
cvs rdiff -u -r1.63 -r1.64 pcc/cc/cpp/cpp.h

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

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

Log Message:
simplify xstrdup(), just wrap strdup() directly


To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 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-19 12:09:00 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Oct 19 12:09:00 UTC 2012

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

Log Message:
when opening a named output file,
- use O_TRUNC to make sure nothing remains
- provide default mode of 0666


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 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-19 14:19:51 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Oct 19 14:19:51 UTC 2012

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

Log Message:
simplify and improve pragmastmt() - don't output extra newlines,
this is a complete line and they are handled upstream, so no need
to output a line marker either, the line count is not changed.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 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-19 14:21:01 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Oct 19 14:21:01 UTC 2012

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

Log Message:
add test16, relating to line counting around #pragma statements


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pcc/cc/cpp/Makefile.in
cvs rdiff -u -r0 -r1.1 pcc/cc/cpp/tests/res16 pcc/cc/cpp/tests/test16

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-19 14:32:18 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Oct 19 14:32:18 UTC 2012

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

Log Message:
flslvl is always 0, here


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 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-19 14:34:05 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Oct 19 14:34:05 UTC 2012

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

Log Message:
make it clear we refer to preprocessor directives, in error message


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 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-19 14:35:43 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Fri Oct 19 14:35:43 UTC 2012

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

Log Message:
use NULL for zero pointer


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 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-20 17:18:10 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Sat Oct 20 17:18:10 UTC 2012

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

Log Message:
maintain line count when folding back in postponed newlines


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 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-20 17:20:24 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Sat Oct 20 17:20:24 UTC 2012

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

Log Message:
nnl++ for postponed newline


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 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-20 17:24:32 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Sat Oct 20 17:24:32 UTC 2012

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

Log Message:
be more obvious that EOF is -1


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

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

Loading...