Re: GError implementation




Tim Janik wrote:
> 
> On 23 Jun 2000, Havoc Pennington wrote:
> 
> >
> > Comments?
> >
> > /* gerror.h - Error reporting system
> >  *
> >  *  Copyright 2000 Red Hat, Inc.
> >  *
> >  * The Gnome Library is free software; you can redistribute it and/or
> >  * modify it under the terms of the GNU Library General Public License as
> >  * published by the Free Software Foundation; either version 2 of the
> >  * License, or (at your option) any later version.
> >  *
> >  * The Gnome Library is distributed in the hope that it will be useful,
> >  * but WITHOUT ANY WARRANTY; without even the implied warranty of
> >  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> >  * Library General Public License for more details.
> >  *
> >  * You should have received a copy of the GNU Library General Public
> >  * License along with the Gnome Library; see the file COPYING.LIB.  If not,
> >  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
> >  *   Boston, MA 02111-1307, USA.
> >  */
> >
> > #ifndef __GERROR_H__
> > #define __GERROR_H__
[snip]
> >
> > #ifdef __cplusplus
> > extern "C"
> > {
> > #endif
> >
> > typedef struct _GError GError;
> >
> > struct _GError
> > {
> >   GQuark       module;
> 
> i already said this to owen, do s/module/domain/ to saty consistent with
> the g_log() naming scheme and avoid confusion with GModules.
> 
> >   gint         code;
> >   const gchar *str;
> 
> can we write this out? "string" isn't an awfully long name, other
> candidates are "description", or to think of the Gimp's API "blurb".

If you want to be able to use this with C++, then 'string' would 
probably cause problems with the STL 'string' class.




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