wine/libs/wpp
Rob Shearman 3fecf9ddcd wpp: Fix expansion of macro bodies following the parsing of a numerical digit.
The current regular expression causes all letters and spaces (among
other characters) following the appearance of a digit to be classed as
a literal, including C identifiers which may need to be expanded.

The expression was intended to catch the remaining characters that
were not covered by the first two rules ([^a-zA-Z0-9'"#/\\\n]+ and
{cident}), but the [^'"#/\\\n] expression caught {cident} as well.
While one solution would have been just to catch the expression that
match [a-zA-Z0-9]* that don't match {cident}, i.e. [0-9][a-zA-Z0-9]*,
in the interests of avoiding unnecessary multiple LITERALs being
generated and then combined during parsing the expression also
includes the first expression, making it
[0-9][a-zA-Z0-9]*[^a-zA-Z0-9'"#/\\\n]*.
2010-01-19 12:43:30 +01:00
..
Makefile.in makefiles: Split AR into AR and ARFLAGS. 2008-03-04 20:55:24 +01:00
ppl.l wpp: Fix expansion of macro bodies following the parsing of a numerical digit. 2010-01-19 12:43:30 +01:00
ppy.y wpp: Add I/O callbacks. 2009-10-13 16:25:43 +02:00
preproc.c wpp: Add I/O callbacks. 2009-10-13 16:25:43 +02:00
wpp_private.h wpp: Add I/O callbacks. 2009-10-13 16:25:43 +02:00
wpp.c wpp: Reset the line position when parsing a new file. 2010-01-04 13:02:16 +01:00