Branch: Tag:

2004-10-31

2004-10-31 22:35:45 by Martin Stjernholm <mast@lysator.liu.se>

Handle escaped newlines in ordinary text too. This also fixes the bug that
#if expressions couldn't be broken with escaped newlines.

Did away with FINDTOK and its somewhat broken comment parsing. It's
unnecessary to handle comments since the expression already have them
stripped.

Rev: src/cpp.c:1.147
Rev: src/preprocessor.h:1.76
Rev: src/testsuite.in:1.742

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.741 2004/10/30 11:38:28 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.742 2004/10/31 22:35:45 mast Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
7628:    feed("#charset ebcdic-us\n"    "constant val = \"abc\";\n")->drain())()->val;   ]], "abc") + test_eq([[cpp("\\\n")]], "# 1 \"-\"\n\n") + test_eq([[cpp("#if 1\\\n-1\nfoo\n#endif\n")]], "# 1 \"-\"\n\n\n\n\n")      // The following three tests are in triplicate to force testing in all shifts.   test_do([[