Re: wpp: Stop parsing single and double quoted string constants after a first newline character.

2012-03-16 Thread Józef Kucia
Please forget this patch. It's superseded by another.

Re: wpp: Stop parsing single and double quoted string constants after a first newline character.

2012-03-15 Thread Józef Kucia
expected end of file) into a warning, which may be > troublesome in general. > I hope it doesn't break anything else... I guess the safest way is to make it optional. As a result, the old behavior will be kept for other users of wpp and only D3DCompiler will be affected by this change.

Re: wpp: Stop parsing single and double quoted string constants after a first newline character.

2012-03-15 Thread Matteo Bruni
Il 14 marzo 2012 23:02, Józef Kucia ha scritto: > @@ -679,11 +649,23 @@ void pp_writestring(const char *format, ...) >                } >        } >  \\.      add_string(ppy_text, ppy_leng); > -\n       { > +\n             { >                newline(1); >                add_string(ppy_text, ppy_le

Re: wpp: Shed an unused parameter from generic_msg. (RESEND)

2011-09-11 Thread Michael Stefaniuc
. This is patch is ugly. Just keeping the unused parameter warning is way better. Code needs to be optimized for the human reader not perverted to make a tool stfu. bye michael > Or would you rather see a patch that remove WANT_NEAR_INDICATION > altogether? > > Gerald > >

Re: wpp: Shed an unused parameter from generic_msg. (RESEND)

2011-09-11 Thread Gerald Pfeifer
together? Gerald diff --git a/libs/wpp/preproc.c b/libs/wpp/preproc.c index 99934d6..996c0f8 100644 --- a/libs/wpp/preproc.c +++ b/libs/wpp/preproc.c @@ -684,7 +684,11 @@ int pp_get_if_depth(void) /* #define WANT_NEAR_INDICATION */ -static void generic_msg(const char *s, const char *t, const

Re: wpp: Shed an unused parameter from generic_msg. (RESEND)

2011-09-08 Thread Alexandre Julliard
Gerald Pfeifer writes: > I sent basically this in February without any feedback, and it still > applies. It's still wrong, the parameter is used inside the #ifdef. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH] libs/wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large

2010-07-26 Thread Austin English
On Mon, Jul 26, 2010 at 12:38 PM, Travis Athougies wrote: > Resending patch with proper line wrapping You forgot the patch :-). -- -Austin

Re: [PATCH] libs/wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large

2010-07-25 Thread André Hentschel
Hi, Your Patch got wrapped. Try change some settings in you Mailclient please and resubmit. Thx -- Best Regards, André Hentschel

Re: [5/9] wpp: Handle remaining memory allocation failures [try 2]

2009-10-02 Thread Matteo Bruni
gt; -- > Alexandre Julliard > julli...@winehq.org > Which is the best way to notify the condition? ppy_error and ppy_warning don't seem to be applicable here either, debug channels aren't used in wpp. Is it ok to simply keep the fprintf?

Re: [7/9] wpp: Remove the assumption pp_internal_error calls exit() [try 2]

2009-10-02 Thread Alexandre Julliard
Matteo Bruni writes: > From 79aebdb612334b9816375abce58c65b90130732a Mon Sep 17 00:00:00 2001 > From: Matteo Bruni > Date: Tue, 29 Sep 2009 12:10:24 +0200 > Subject: wpp: Remove the assumption pp_internal_error calls exit() Actually it's OK for it to exit(), though assert()

Re: [5/9] wpp: Handle remaining memory allocation failures [try 2]

2009-10-02 Thread Alexandre Julliard
Matteo Bruni writes: > @@ -82,8 +82,7 @@ void *pp_xmalloc(size_t size) > res = malloc(size); > if(res == NULL) > { > -fprintf(stderr, "Virtual memory exhausted.\n"); > -exit(2); > +pp_internal_error(__FILE__, __LINE__, "Virtual memory exhausted.\n"); >

Re: [13/18] wpp: Add wpp_set_exit_on_error function

2009-08-17 Thread Matteo Bruni
2009/8/17 Juan Lang : > Hi Matteo, > > this approach seems pretty inflexible to me: > > +/* Whether to exit the app on errors (default: true) */ > +extern void wpp_set_exit_on_error( int exit ); > > @@ -646,7 +654,8 @@ int ppy_error(const char *s, ...) >        va_start(ap, s); >        generic_msg

Re: [13/18] wpp: Add wpp_set_exit_on_error function

2009-08-17 Thread Juan Lang
Hi Matteo, this approach seems pretty inflexible to me: +/* Whether to exit the app on errors (default: true) */ +extern void wpp_set_exit_on_error( int exit ); @@ -646,7 +654,8 @@ int ppy_error(const char *s, ...) va_start(ap, s); generic_msg(s, "Error", ppy_text, ap); v

Re: wpp: add I/O hooks [try 2]

2009-07-14 Thread Matteo Bruni
Hi Juan, these I/O hooks are needed to use wpp as a preprocessor for d3d shader assembling, where I have to read files with CreateFile/ReadFile (Windows-style) or from memory. I plan to send the assembler patches not immediately (in particular, the patch which makes use of wpp is not so near). On

Re: wpp: add I/O hooks [try 2]

2009-07-14 Thread Juan Lang
Hi Matteo, it'd be easier to review your patch if you sent it along with a subsequent patch that made use of the I/O hooks. As it is, it's hard to know why this is necessary. Cheers, --Juan

Re: wpp: Check for overflows when parsing integer constants.

2008-10-18 Thread Alexandre Julliard
"Rob Shearman" <[EMAIL PROTECTED]> writes: > diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l > index 3e84a2e..829ac35 100644 > --- a/libs/wpp/ppl.l > +++ b/libs/wpp/ppl.l > @@ -163,6 +163,9 @@ ul > [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL

Re: libs/wpp/ppy.y signedness fixes

2008-07-23 Thread Alexandre Julliard
Gerald Pfeifer <[EMAIL PROTECTED]> writes: > In ISO C, operations involving both signed and unsigned types are > using signed. If the case of ui = ui OP si is really ment to make > use of this (despite the result being stored in an unsigned type), > we'd need to handle this via two casts, but I

Re: libs/wpp: Avoid compiler warnings (-W)

2007-11-04 Thread Dan Hipschman
(cpy); > #endif > + } > fprintf(stderr, "\n"); > } > Related, although not really a great solution: http://www.winehq.org/pipermail/wine-cvs/2006-September/026094.html I forget, are the extra "near" messages actually helpful, or misleading? In any case, whatever ends up happening here should probably also happen in widl, since it uses wpp and consistent warning/error messages are nice.

Re: Makefiles: Add a default BISONFLAGS variable for widl, wmc, wrc and wpp.

2007-01-19 Thread Alexandre Julliard
Robert Shearman <[EMAIL PROTECTED]> writes: > I disagree. I had a resource file that had an error because I forgot > to define "IDC_STATIC" to a number and all I got from wrc was an > unhelpful "syntax error" that seemed to point to the wrong line. I > ended up using the debugging option to find o

wpp

2005-02-20 Thread Ge van Geldorp
wpp will currently silently drop non-preprocessor stuff (typedefs, function prototypes etc.) when #including a .c or .h file. However, if you preprocess e.g. a .rc file externally and then feed it to wrc (which in turn will feed it through wpp) the non-preprocessor stuff isn't removed. The

Re: WPP: Fixed 'out of tree' compilation

2005-01-06 Thread Stefan Leichter
Am Donnerstag, 6. Januar 2005 18:49 schrieb Jacek Caban: > Stefan Leichter wrote: > >Hello, > > > >here is a another backtrace of widl with libefence. The crash is from > >wine-20041227-1114. The patch applied to wine before this snapshot raises > > the problem. The patch was: > > > >Modified files

Re: WPP: Fixed 'out of tree' compilation

2005-01-06 Thread Jacek Caban
AIL PROTECTED]> Generate only wanted files. Patch: http://cvs.winehq.org/patch.py?id=15042 Bye Stefan I think I found the bug. Could you try the attached patch? Thanks, Jacek Index: libs/wpp/wpp.c === RCS file: /home/win

Re: WPP: Fixed 'out of tree' compilation

2005-01-06 Thread Stefan Leichter
from /lib/i686/libc.so.6 #6 0x0805e880 in version_string () #7 0x0001 in ?? () #8 0xbfffef80 in ?? () #9 #10 0x400a6243 in strlen () from /lib/i686/libc.so.6 #11 0x08052641 in pp_xstrdup (str=0x4022bfe0 "../../wipe/include/basetô_/@ø\177\037@" ) at ../../../wipe/libs/wpp/preproc.

Re: WPP: Fixed 'out of tree' compilation

2005-01-05 Thread Jacek Caban
Alexandre Julliard wrote: Jacek Caban <[EMAIL PROTECTED]> writes: --- libs/wpp/ppy.y 1 May 2003 03:16:21 - 1.1 +++ libs/wpp/ppy.y 30 Dec 2004 10:11:39 - @@ -537,7 +537,10 @@ static int boolean(cval_t *v) static marg_t *new_marg(char *str, def_arg_t type) { marg_t *ma = pp_x

Re: WPP: Fixed 'out of tree' compilation

2005-01-05 Thread Alexandre Julliard
Jacek Caban <[EMAIL PROTECTED]> writes: > --- libs/wpp/ppy.y1 May 2003 03:16:21 - 1.1 > +++ libs/wpp/ppy.y30 Dec 2004 10:11:39 - > @@ -537,7 +537,10 @@ static int boolean(cval_t *v) > static marg_t *new_marg(char *str, def_arg_t type) > { >