Re: [janitor] tools -Wwrite-strings cleanup

2004-10-15 Thread Dimitrie O. Paun
On Fri, Oct 15, 2004 at 06:43:31PM +0200, Daniel Marmier wrote: > If such a risk exists, the latter change implies that we will silently free > the copy of the data instead of trying to free the static data. This could > lead to consider a simple test passed, while causing random results in > more

Re: [janitor] tools -Wwrite-strings cleanup

2004-10-15 Thread Daniel Marmier
On Thursday 14 October 2004 02.55, Alexandre Julliard wrote: > Daniel Marmier <[EMAIL PROTECTED]> writes: > > > This is one situation I would like to discuss a bit more. > > Some code uses a mix of static and dynamic structures containing strings. > > The static instances have constant strings, th

Re: [janitor] tools -Wwrite-strings cleanup

2004-10-08 Thread Alexandre Julliard
Daniel Marmier <[EMAIL PROTECTED]> writes: > -static type_t std_bool = { "boolean" }; > -static type_t std_int = { "int" }; > -static type_t std_int64 = { "__int64" }; > -static type_t std_uhyper = { "MIDL_uhyper" }; > +static char name_bool[] = "boolean"; > +static char name_int[] = "int"; > +sta