Re: tools/widl: Split expr_int_const off from expr

2009-12-21 Thread Henri Verbeet
2009/12/21 Gerald Pfeifer : > How shall we best tackle this? > At least for the wined3d ones, we might as well just add them to the enum, the macros aren't strictly necessary.

Re: tools/widl: Split expr_int_const off from expr

2009-12-21 Thread Gerald Pfeifer
Hi Rob, first of all sorry for the delay in getting back to this. I kept looking for alternative approaches, but now ended up figuring that really laying down the issue at hand I was trying to solve in front of everyone a priori will be the better approach. Let me first respond to concrete feedba

Re: tools/widl: Split expr_int_const off from expr

2009-07-02 Thread Rob Shearman
2009/6/28 Gerald Pfeifer : > diff --git a/tools/widl/parser.y b/tools/widl/parser.y > index c2f1abc..01aa060 100644 > --- a/tools/widl/parser.y > +++ b/tools/widl/parser.y > @@ -622,56 +633,54 @@ m_expr:                                           { $$ > = make_expr(EXPR_VOID); } >        | expr >  

Re: tools/widl/typegen.c pointer initialization

2007-10-30 Thread Gerald Pfeifer
On Mon, 29 Oct 2007, Dan Hipschman wrote: > Compiling with "-O2 -W -Wall" using either gcc 4.0 or 3.4 I don't get > any warnings. Even adding -Wuninitialized doesn't do anything: I am mostly using GCC 3.4 with -O2 -Wall as you did, and occasionally a snapshot of GCC 4.3, with and without -Wextra

Re: tools/widl/typegen.c pointer initialization

2007-10-29 Thread Dan Hipschman
On Sun, Oct 28, 2007 at 07:07:15PM -0700, Dan Kegel wrote: > To get uninitialized warnings, you have to also specify > optimization (-O2). Without -O, gcc doesn't > do the analysis that can detect uninitialized variables. Compiling with "-O2 -W -Wall" using either gcc 4.0 or 3.4 I don't get any w

Re: tools/widl/typegen.c pointer initialization

2007-10-29 Thread Gerald Pfeifer
On Sun, 28 Oct 2007, Dan Hipschman wrote: > The logic is as follows: Thanks for the explanation, Dan! > Better than this would be to put "assert(is_user_type(type));" above the > initializations to convince the programmer at least that name will get > initialized correctly in get_user_type. If

re: tools/widl/typegen.c pointer initialization

2007-10-28 Thread Dan Kegel
Dan H. wrote: > If you tell me what options you build with and I can reproduce the > warning then I'll be more than happy to try to fix it. I build widl > with -W -Wall and get two warnings. To get uninitialized warnings, you have to also specify optimization (-O2). Without -O, gcc doesn't do th

Re: tools/widl/typegen.c pointer initialization

2007-10-28 Thread Dan Hipschman
On Mon, Oct 29, 2007 at 01:26:45AM +0100, Gerald Pfeifer wrote: > I think the question is whether a compiler can reasonably be expected > to deduce that the source is fine. If that deduction involves solving > the halting problem (or similar) hacking the source to avoid the warning > actually does

Re: tools/widl/typegen.c pointer initialization

2007-10-28 Thread Dan Hipschman
On Sun, Oct 28, 2007 at 01:51:34PM +0100, Gerald Pfeifer wrote: > In tools/widl/typegen.c we have the following snippet > > static void write_user_tfs(FILE *file, type_t *type, unsigned int *tafsoff) > { > unsigned int start, absoff, flags; > unsigned int align = 0, ualign = 0; > c

Re: tools/widl

2005-05-12 Thread Alexandre Julliard
"Ge van Geldorp" <[EMAIL PROTECTED]> writes: > I'm wondering what happened to the reworked widl patch at > http://www.winehq.org/hypermail/wine-patches/2005/04/0371.html? It hasn't > been applied yet, does that mean there's no interest on the Wine side and I > can drop it from my TODO list? There

RE: tools/widl

2005-05-12 Thread Ge van Geldorp
I'm wondering what happened to the reworked widl patch at http://www.winehq.org/hypermail/wine-patches/2005/04/0371.html? It hasn't been applied yet, does that mean there's no interest on the Wine side and I can drop it from my TODO list? Best regards, Ge van Geldorp.

Re: tools/widl

2005-04-25 Thread Alexandre Julliard
"Ge van Geldorp" <[EMAIL PROTECTED]> writes: > This is a big problem for me. Eric Kohl (not me) did a lot of work on WIDL > in the ReactOS tree, there's about 20 patches to follow after this one. If > this first patch is not acceptable and needs to be rewritten, it means I can > no longer simply p

RE: tools/widl

2005-04-25 Thread Ge van Geldorp
> From: Alexandre Julliard > > You should add some sort of get_fc_name() function instead of > duplicating a big switch like that every time you want to > print a name. This is a big problem for me. Eric Kohl (not me) did a lot of work on WIDL in the ReactOS tree, there's about 20 patches to fo

Re: tools/widl

2005-04-25 Thread Alexandre Julliard
Ge van Geldorp <[EMAIL PROTECTED]> writes: > +switch(var->type->type) > +{ > +case RPC_FC_BYTE: > +print_client("0x4e,/* FC_IN_PARAM_BASETYPE */\n"); > +print_client("0x%02x,/* FC_BYTE */\n", RPC_FC_BYT