diff options
| author | Philip <pipcet@gmail.com> | 2015-05-02 12:58:37 +0000 |
|---|---|---|
| committer | Philip <pipcet@gmail.com> | 2015-05-02 12:58:37 +0000 |
| commit | 0877ba7cbf275fdcd45e3c33768d258fc75feb5b (patch) | |
| tree | dc52b5c3b27496aca61f6ffd72b082181c7da1de /tests/tests2/45_empty_for.expect | |
| parent | a3d78b95d7564c92afa09604fde6387a03d3acde (diff) | |
| download | tinycc-0877ba7cbf275fdcd45e3c33768d258fc75feb5b.tar.gz tinycc-0877ba7cbf275fdcd45e3c33768d258fc75feb5b.tar.bz2 | |
tccpp.c: parse flag to accept stray \
This adds a PARSE_FLAG_ACCEPT_STRAYS parse flag to accept stray
backslashes in the source code, and uses it for pure preprocessing.
For absolutely correct behaviour of # stringification, we need to use
this flag when parsing macro definitions and in macro arguments, as
well; this patch does not yet do so. The test case for that is something
like
#define STRINGIFY2(x) #x
#define STRINGIFY(x) STRINGIFY2(x)
STRINGIFY(\n)
which should produce "\n", not a parse error or "\\n".
See http://lists.nongnu.org/archive/html/tinycc-devel/2015-05/msg00002.html
Diffstat (limited to 'tests/tests2/45_empty_for.expect')
0 files changed, 0 insertions, 0 deletions
