Re: [PATCH] gtktextchild.c: CHECK_IN_BUFFER_RETURN



Am Sam, 2002-02-09 um 19.45 schrieb Havoc Pennington:
> 
> Daniel Elstner <daniel elstner gmx net> writes:
> > 
> > huge one-line macros are ugly, aren't they? ;)
> > This one returns always:
> > 
> > #define CHECK_IN_BUFFER_RETURN(anchor, val) do { if ((anchor)->segment
> > == NULL) g_warning ("%s: GtkTextChildAnchor hasn't
> >  been in a buffer yet", G_GNUC_FUNCTION); return (val); } while (0)
> > 
> > Patch attached, OK to commit?
> > 
> 
> Yes please, sorry about that. (Maybe you should reformat it to be on
> multiple lines and indented properly, as I should have done in the
> first place...)

Done.  I reformatted CHECK_IN_BUFFER too, and made use of G_STMT_* as
suggested by Owen.

Cheers,
--Daniel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]