[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: SoupInputStream / trying out gio
From:       Mathias Hasselmann <mathias.hasselmann () gmx ! de>
Date:       2007-12-05 11:56:24
Message-ID: 1196855784.12903.53.camel () localhost
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Am Mittwoch, den 05.12.2007, 11:17 +0100 schrieb Mathieu Lacage:
> On Wed, 2007-12-05 at 09:28 +0100, Alexander Larsson wrote:
> > On Tue, 2007-12-04 at 15:59 -0500, Morten Welinder wrote:
> > > > I added an extra check for ->write != NULL in the splice case (because
> > > > write() already did that) and commited.
> > > 
> > > I would be to avoid having struct members called write.  That is a reserved
> > > symbol and if the C library decides to use a macro you will have some very
> > > interesting effects.
> > 
> > Oh, yeah. Maybe we should rename it to something like _write? 
> > 
> > What other symbols can be macros like this? close? read?
> 
> Pretty much everything, yes. I doubt it makes any sense to try to
> protect yourself from such stupidity.

Specially as you can use #undef in your C code, when stuck with a
platform doing such stupidities...

Ciao,
Mathias
-- 
Mathias Hasselmann <mathias.hasselmann@gmx.de>
http://taschenorakel.de/

["signature.asc" (application/pgp-signature)]

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic