Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate CHANGES @ 203:3a25180d3a5c
Abort on line numbering or column numbering overflow.
Line numbers are limited to values that fit in "unsigned int". Also
reject input lines longer than 2^32-1 characters. It seems reasonable
to presume that any input that violates these constraints is someone
screwing around and not a serious attempt to compile or preprocess
anything useful. Done in response to n2129, but without getting into
any of the silliness found there.
author | David A. Holland |
---|---|
date | Tue, 01 Aug 2017 14:51:04 -0400 |
parents | e200cb46ab23 |
children | bdc672634010 |
rev | line source |
---|---|
202 | 1 release [pending] |
203
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
2 - Abort on line numbering or column numbering overflow. Line |
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
3 numbers are limited to values that fit in "unsigned int". Also |
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
4 reject input lines longer than 2^32-1 characters. It seems |
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
5 reasonable to presume that any input that violates these |
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
6 constraints is someone screwing around and not a serious attempt |
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
7 to compile or preprocess anything useful. Done in response to |
3a25180d3a5c
Abort on line numbering or column numbering overflow.
David A. Holland
parents:
202
diff
changeset
|
8 n2129, but without getting into any of the silliness found there. |
202 | 9 - Recognize __ia64__ for IA64 builds. |
10 | |
200 | 11 release 0.5.2 (20160904) |
198 | 12 - Fix typo in -U usage message, noticed by Joerg. |
199
1d2bad7151f9
Add a -debuglog option to send an execution trace to a file.
David A. Holland
parents:
198
diff
changeset
|
13 - Add a -debuglog option to send an execution trace to a file. |
1d2bad7151f9
Add a -debuglog option to send an execution trace to a file.
David A. Holland
parents:
198
diff
changeset
|
14 Intended to be used when debugging imake templates and other |
1d2bad7151f9
Add a -debuglog option to send an execution trace to a file.
David A. Holland
parents:
198
diff
changeset
|
15 complex input, not for debugging tradcpp itself. |
198 | 16 |
195 | 17 release 0.5.1 (20150612) |
193 | 18 - Fix a stupid regression in 0.5 that causes it to not recognize a |
19 pile of options. | |
192 | 20 - Fix output corruption caused by mishandling which macros are |
21 currently in use. In particular, "curmacro" is only valid while | |
22 we're parsing a macro name and arguments, and can change once we | |
193 | 23 start expanding, so don't use it to clear the in-use flag. This |
24 problem has been around all along but was only just exposed. | |
192 | 25 - Also don't set curmacro to null after calling expand_domacro as |
26 that can cause us to think a macro name we just read is defined(). | |
193 | 27 This one was introduced in 0.5. |
191
c8d4ab9aeff0
don't use "remove" as a local variable; fails on gcc4.1
David A. Holland
parents:
188
diff
changeset
|
28 - Don't use "remove" as a local variable as gcc 4.1 gets upset |
c8d4ab9aeff0
don't use "remove" as a local variable; fails on gcc4.1
David A. Holland
parents:
188
diff
changeset
|
29 about it vs. remove(3) in stdio.h. |
c8d4ab9aeff0
don't use "remove" as a local variable; fails on gcc4.1
David A. Holland
parents:
188
diff
changeset
|
30 |
188 | 31 release 0.5 (20150612) |
186
9637bf434f8e
Don't report unclosed comments as "no newline at end of file".
David A. Holland
parents:
184
diff
changeset
|
32 - Don't report unclosed comments as "No newline at end of file". |
183
4c3375895c6e
Don't use <stdbool.h> unless __STDC__ is large enough.
David A. Holland
parents:
182
diff
changeset
|
33 - Don't rely on <stdbool.h> existing, as (predictably) it doesn't |
4c3375895c6e
Don't use <stdbool.h> unless __STDC__ is large enough.
David A. Holland
parents:
182
diff
changeset
|
34 work on Solaris. |
184 | 35 - Similarly, don't rely on C11 anonymous unions as the Solaris |
36 compiler vomits on them. | |
182 | 37 - Typo fix in man page from Jason McIntyre; and change "Usage" to |
38 "usage" in usage for pedantic reasons, from Igor Sobrado. | |
181
44ea61019069
Accept "-" as the input file, or as the output file.
David A. Holland
parents:
176
diff
changeset
|
39 - Accept "-" as either input or output file name to mean stdin or |
44ea61019069
Accept "-" as the input file, or as the output file.
David A. Holland
parents:
176
diff
changeset
|
40 stdout respectively. Suggested by Jonathan Gray. |
176
a2f047301c15
Replace Joerg's place_setfile with something that at least sort of works.
David A. Holland
parents:
151
diff
changeset
|
41 - Fix output spacing behavior to match gcc when newlines appear in or |
a2f047301c15
Replace Joerg's place_setfile with something that at least sort of works.
David A. Holland
parents:
151
diff
changeset
|
42 while looking for macro arguments. Partly from Joerg Sonnenberger. |
a2f047301c15
Replace Joerg's place_setfile with something that at least sort of works.
David A. Holland
parents:
151
diff
changeset
|
43 - Implement __FILE__ and __LINE__ macros. Mostly from Joerg Sonnenberger. |
a2f047301c15
Replace Joerg's place_setfile with something that at least sort of works.
David A. Holland
parents:
151
diff
changeset
|
44 - Implement #line. Partly from Joerg Sonnenberger. |
151 | 45 - Declare usage() with PF(). From wiz. |
46 | |
147 | 47 release 0.4 (20130713) |
141 | 48 - Fix stupid build problem introduced in 0.3.1. |
145 | 49 - Accept and ignore -m32, which imake issues willy-nilly on a bunch |
50 of platforms. I thought this had already been done, but apparently | |
51 not. | |
143 | 52 - Don't use the <err.h> functions. There are still people out there |
145 | 53 using legacy systems missing them. |
54 - Sort out some more issues pertaining to handling quoted strings. | |
55 - Add some more tests. | |
141 | 56 |
138 | 57 release 0.3.1 (20130709) |
135
eaae8014a94a
Don't assert and leak memory if failing during argument collection.
David A. Holland
parents:
133
diff
changeset
|
58 - Don't leak memory and assert if a bad command-line option comes |
eaae8014a94a
Don't assert and leak memory if failing during argument collection.
David A. Holland
parents:
133
diff
changeset
|
59 after a -D or a -include foo. |
137 | 60 - Since imake is a principal application for tradcpp and imake carefully |
61 hides what it's doing when you run it, when rejecting an invalid option | |
62 be sure to report *what* that option is. | |
135
eaae8014a94a
Don't assert and leak memory if failing during argument collection.
David A. Holland
parents:
133
diff
changeset
|
63 |
133 | 64 release 0.3 (20130616) |
128
1cda505ddc78
Don't expand macros within character constants.
David A. Holland
parents:
127
diff
changeset
|
65 - Don't eval the control expression of the first #if of a block when |
127 | 66 already in a false block; it might not be valid. Reported by |
67 Baptiste Daroussin. | |
128
1cda505ddc78
Don't expand macros within character constants.
David A. Holland
parents:
127
diff
changeset
|
68 - Don't recognize comments within character constants. |
129
2e1496dd96c4
Don't recognize macro argument parens or commas within quotes.
David A. Holland
parents:
128
diff
changeset
|
69 - Don't recognize macro argument parentheses or commas within strings, |
2e1496dd96c4
Don't recognize macro argument parens or commas within quotes.
David A. Holland
parents:
128
diff
changeset
|
70 or within character constants either. |
127 | 71 |
124 | 72 release 0.2 (20130611) |
102 | 73 - auto-recognize more builtin PowerPC and mips macros |
103 | 74 - pass -Wunused (partly from Baptiste Daroussin) |
104 | 75 - allow absolute paths in include files (partly from Baptiste Daroussin) |
105
600f36cd7353
don't use getprogname() in the name of portability
David A. Holland
parents:
104
diff
changeset
|
76 - don't use getprogname() in the name of portability |
106
ecec7c16e3ba
add a couple more tests, taken from the 2010 tech-toolchain thread
David A. Holland
parents:
105
diff
changeset
|
77 - add tests arising from December 2010 tech-toolchain thread (one |
ecec7c16e3ba
add a couple more tests, taken from the 2010 tech-toolchain thread
David A. Holland
parents:
105
diff
changeset
|
78 from der Mouse, one of mine) |
107 | 79 - clean out usage of sys/cdefs.h macros and don't use the implementation |
80 namespace | |
109 | 81 - make -Wcomment work again |
112 | 82 - fix handling of relative includes |
110 | 83 - provide a man page |
115 | 84 - other minor improvements |
102 | 85 |
86 release 0.1 (20130610) | |
87 - first release, works with at least some imake templates |