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
Gerald Pfeifer
3ba9986325
wpp: Add missing #include <ctype.h>.
2008-12-27 20:28:47 +01: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 33017b0d93
.
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
0c694d710e
makefiles: Split AR into AR and ARFLAGS.
2008-03-04 20:55:24 +01: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
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Michael Stefaniuc
cc4b9656b9
wpp: Remove redundant NULL check before free(). Found by Smatch.
2007-10-22 12:36:08 +02: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
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +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
Alexandre Julliard
145a0ba508
makefiles: List bison dependencies explicitly for parallel makes, since older bisons don't support --defines.
2006-09-11 21:43:11 +02:00
Alexandre Julliard
9c085cba0a
makefiles: Add global rules for bison and lex files.
...
Also build the .c and .h files separately to allow parallel makes.
2006-09-09 13:16:22 +02:00
Alexandre Julliard
65516804ee
libs/wpp: Specify the bison name prefix directly in the source file.
2006-09-09 11:25:10 +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