39 Commits

Author SHA1 Message Date
Matteo Bruni
b5db97ac51 wpp: Correctly handle OOM in pop_buffer(). 2014-06-26 20:02:03 +02:00
Matteo Bruni
1b79df4e80 wpp: Free some filename strings after processing an include (Valgrind). 2014-06-26 20:00:54 +02:00
Matteo Bruni
efcaad3911 wpp: Free the include filename on error (Valgrind). 2014-06-25 11:35:50 +02:00
Matteo Bruni
80034de243 wpp: Explicitly pass include type to the lookup callback function.
Also, always pass the parent name to the callback, d3dcompiler needs
that information.
2012-06-13 21:35:39 +02:00
Józef Kucia
1d9bb50230 wpp: Reset lexer state after unexpected end of file. 2012-03-12 10:12:53 +01:00
Nikolay Sivov
fdcf7cc9af wpp: Properly use va_start/va_end around vsnprintf(). 2012-02-20 11:38:30 +01:00
Francois Gouget
c992ca277d Assorted spelling fixes. 2011-08-24 19:07:46 +02:00
Travis Athougies
4858654031 wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large. 2010-07-28 12:21:54 +02:00
Gerald Pfeifer
b52eef9511 wpp: Remove variable dbgtext which is not really used frommake_number. 2010-04-26 07:00:12 -05:00
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
Michael Stefaniuc
e470475151 Revert "Revert "wpp: config.h and wine/port.h should be included first."".
This reverts commit 8e729245412e6b1e24b9871a0252b7e660fd24ec.
Wine now requires a new enough flex version.
2009-12-30 13:36:23 +01:00
Matteo Bruni
e773c516ba wpp: Add I/O callbacks. 2009-10-13 16:25:43 +02:00
Matteo Bruni
28fb6a24b1 wpp: get_string() now can return NULL, handle it. 2009-10-06 16:12:39 +02:00
Matteo Bruni
c571d3c1fa wpp: Handle remaining memory allocation failures in ppl.l and ppy.y. 2009-10-02 12:29:56 +02:00
Matteo Bruni
b7a2d2da3a wpp: Handle memory allocation failures in tokens management code. 2009-10-02 12:29:24 +02:00
Matteo Bruni
026ca4cd00 wpp: Remove the assumption ppy_error calls exit(). 2009-10-02 12:26:06 +02:00
Rob Shearman
92f5aa0a69 wpp: Check for overflows when parsing integer constants. 2008-10-22 11:57:36 +02:00
Alexandre Julliard
28a2179dd6 Add noinput directive to all lex files to avoid a compiler warning. 2008-07-07 12:31:33 +02:00
Alexandre Julliard
8e72924541 Revert "wpp: config.h and wine/port.h should be included first."
This reverts commit 33017b0d936597d55025e006a6dc2bbf4ef733c4.
Some distros still ship flex 2.5.4 unfortunately.
2008-06-30 16:17:35 +02:00
Alexandre Julliard
33017b0d93 wpp: config.h and wine/port.h should be included first. 2008-06-30 12:52:00 +02:00
Rob Shearman
dfcd07eba0 libwpp: Include wine/port.h in ppl.l as strcasecmp is used, which isn't available on all platforms. 2008-03-04 12:01:44 +01:00
Alexandre Julliard
41fbacefa1 Avoid the nounistd option that doesn't exist on older flex, define YY_NO_UNISTD_H instead. 2008-02-19 15:42:49 +01:00
Rob Shearman
878ea5d2e2 Add the nounistd option to all lex source files. 2008-02-19 13:39:25 +01:00
Alexandre Julliard
49a3d4371d wpp: Don't suppress output from C include files, that's up to the user. 2007-06-28 14:10:42 +02:00
Michael Stefaniuc
173f7bd26c janitorial: Remove remaining NULL checks before free() (found by Smatch). 2006-10-10 12:56:24 +02:00
Alexandre Julliard
2d778c5eea wpp: Change the prefix on bison-generated names to avoid the name-prefix directive. 2006-09-12 09:04:55 +02:00
Dan Hipschman
804993deea wpp: In recursive macro definitions, print the macro name instead of nothing. 2006-07-18 11:35:51 +02:00
Jonathan Ernst
360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Bill Medland
427e488ba1 wpp: Support long long constants if configure says long long is available 2006-05-05 18:06:54 +02:00
Bill Medland
9e73da7340 wpp: Implement long long constant parsing. 2006-04-21 12:44:21 +02:00
Alexandre Julliard
1e96455094 Remove YY_NO defines that cause warnings. 2006-01-05 12:20:05 +01:00
Alexandre Julliard
0ae2c69c7a Added some flex options to avoid compiler warnings.
Moved options from the Makefile into the source.
2006-01-03 12:16:05 +01:00
Alexandre Julliard
36c3199782 Default search path for an include file should be based on the path of
the parent source file, not the current directory.
2005-10-10 18:06:50 +00:00
Alexandre Julliard
cd91bc61be Now that we are requiring bison anyway, make the .tab.c file use the
same base name as the .y file, so that we can generate correct
dependencies in all cases.
2005-09-28 18:17:08 +00:00
Ge van Geldorp
73227aa568 Treat already preprocessed code just like normal #include'ed code. 2005-02-25 16:19:35 +00:00
Daniel Marmier
7832562ee6 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-21 23:57:25 +00:00
Francois Gouget
c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Paul Laufer
4a36a2855d Work around for flex brain damage. 2003-06-04 20:25:55 +00:00
Alexandre Julliard
e1a9b10f51 Moved the wpp library from tools/ to libs/.
Create symlinks to the various libraries in the libs directory.
2003-05-01 03:16:21 +00:00