tradcpp: upgrade to 0.5.3

This commit is contained in:
Jon Trulson
2019-12-03 18:12:22 -07:00
parent 15dfdf231a
commit ec8f4b7464
28 changed files with 843 additions and 186 deletions

View File

@@ -8,7 +8,6 @@ not implemented:
- warns.endiflabels. (they cause errors)
- warns.unused.
- the -iremap option.
- #line directives.
- $CPP_RESTRICTED
- other environment variables
@@ -16,11 +15,12 @@ tidy up:
- get rid of inlinedefs.h
- use of places in and below macro.c is pretty bogus.
- macro code should be reworked.
- place_changefile is manky and wastes memory. Also, in an ideal
world we'd remember the place #line changed the name and refer
to it when printing errors.
fix:
- "#if 0 && 1/0" should not crash; fix eval method.
- an unterminated comment is reported as "no newline at end of file"
(which isn't fatal by default)
- quote characters and comment delimiters that are emitted by
macros are not recognized. See:
t34 (should produce a quote and FOO Q)
@@ -31,3 +31,7 @@ fix:
twice, once when the macro is defined and again when it's
expanded. Note that gcc's cpp -traditional is getting t37
wrong, and it gets t36 wrong with -C.
- remove the intentionally undocumented -p option and generate
proper linenumber output. (also, in this code what happens if
a comment spans files? I bet currently it will emit the line
number into the comment.)