Re: SoupInputStream / trying out gio
- From: "Matthias Clasen" <matthias clasen gmail com>
- To: "Alexander Larsson" <alexl redhat com>
- Cc: Dan Winship <danw gnome org>, Morten Welinder <mwelinder gmail com>, "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: Re: SoupInputStream / trying out gio
- Date: Wed, 5 Dec 2007 18:45:46 -0500
On Dec 5, 2007 3:28 AM, Alexander Larsson <alexl redhat com> 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?
>
What we have done previously in cases like this is to append a _, ie
index --> index_
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]