Commit Graph

92 Commits

Author SHA1 Message Date
Francois Gouget bda70216a6 wpp: Standardize the error and warning messages.
Use lowercase 'error:' and 'warning:' prefixes like other tools so the
messages can be recognized by standard tools.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-02 11:42:30 +02:00
Rémi Bernon 7154c8676f wpp: Do not pass NULL %s to fprintf.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 22:39:59 +01:00
Alexandre Julliard 918723186b wpp: Get rid of the no longer needed callbacks.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 14:59:40 +02:00
Alexandre Julliard 595386250a libwpp: Use __int64 instead of long long.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-13 23:40:39 +01:00
Alexandre Julliard 2ae84d5240 Avoid using Windows includes that are already handled in wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:19:00 +01:00
Jacek Caban bdea31c177 wpp: Skip parsing #if expression if it's ignored anyway.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-12 10:21:51 +01:00
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 f91fa37221 wpp: Properly free defines (Valgrind). 2014-06-25 11:32:23 +02:00
Frédéric Delanoy 0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Alexandre Julliard 509364e1dd makefiles: Get rid of Make.rules. 2014-01-14 12:18:02 +01:00
Alexandre Julliard e9afeb2a50 makefiles: Automatically add dll flags where necessary. 2014-01-01 21:33:06 +01:00
Alexandre Julliard e318b4a59c makefiles: Move the static library rules to the global Make.rules file. 2013-10-09 11:25:04 +02:00
Hermès Bélusca-Maïto 9dbd1969fc wpp: Fix path separator on Windows platforms. 2012-12-27 17:15:39 +01: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
Matteo Bruni 8b0d3d9f9a wpp: Invert 'type' callback parameter value, to match comment. 2012-06-13 21:35:38 +02:00
Józef Kucia 2c8a3c31b7 wpp: Fix a few memory leaks in the wpp_parse() function. 2012-03-29 20:49:33 +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
Marcus Meissner 59e817c523 wpp: Add semicolons at end of code rules. 2011-09-26 18:00:32 +02:00
Francois Gouget c992ca277d Assorted spelling fixes. 2011-08-24 19:07:46 +02:00
Gerald Pfeifer 0d92426d2b wpp: Add explicit casts when mixing unsigned and signed integers. 2011-02-28 11:04:52 +01:00
Matteo Bruni 46caa0d225 wpp: Let pp_add_define take the responsibility of copying strings (Valgrind). 2011-02-21 12:45:28 +01:00
Matteo Bruni e32598b046 wpp: Free strings on define deletion (Valgrind). 2011-02-21 12:45:25 +01:00
Gerald Pfeifer 7a3226be46 wpp: Add explicit casts when mixing signed and unsigned integers. 2011-02-16 14:26:27 +01:00
Gerald Pfeifer 7f6d6b835d wpp: Fix the output type for the "unsigned OP signed" cases in BIN_OP_INT and friends. 2011-02-14 13:33:30 +01:00
Alexandre Julliard b9b0bcbf3f wpp: Line and column numbers must start at one. 2010-12-30 13:08:48 +01:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +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
Alexandre Julliard ced7d134c7 wpp: Build with -fPIC to allow libwpp to be used from dlls. 2010-03-30 15:52:53 +02:00
Alexandre Julliard bd94f95938 wpp: Get rid of wpp_parse_temp, temp file management is better left to callers. 2010-03-30 15:34:29 +02:00
Alexandre Julliard fbef7217b9 makefiles: Remove the no longer needed explicit dependencies for bison files. 2010-03-16 13:28:24 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 9644d1dcd7 makefiles: Generate a general catch-all dependency on .tab.h files to replace the manually maintained ones. 2010-02-08 20:58:00 +01:00
Matteo Bruni b40bb31995 wpp: Assure if_stack is clean before returning. 2010-02-05 10:06:55 +01: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
Alexandre Julliard 2b5d06afb9 wpp: Reset the line position when parsing a new file. 2010-01-04 13:02:16 +01:00
Michael Stefaniuc e470475151 Revert "Revert "wpp: config.h and wine/port.h should be included first."".
This reverts commit 8e72924541.
Wine now requires a new enough flex version.
2009-12-30 13:36:23 +01:00
Matteo Bruni e132820330 wpp: Clean state on error path. 2009-12-29 11:15:59 +01:00
Matteo Bruni e773c516ba wpp: Add I/O callbacks. 2009-10-13 16:25:43 +02:00
Marcus Meissner 15968fadef wpp: Fixed resource leakages (Coverity). 2009-10-07 12:23:58 +02:00
Matteo Bruni 29af4f9fa8 wpp: Add error management callbacks. 2009-10-06 16:12:39 +02:00
Matteo Bruni 28fb6a24b1 wpp: get_string() now can return NULL, handle it. 2009-10-06 16:12:39 +02:00
Matteo Bruni 9086c59d32 wpp: Handle remaining memory allocation failures. 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 9b61ca1c0f wpp: Manage malloc failure in pp_xstrdup. 2009-10-02 12:27:43 +02:00
Matteo Bruni 026ca4cd00 wpp: Remove the assumption ppy_error calls exit(). 2009-10-02 12:26:06 +02:00