[GRASS5] Re: G_fatal

GRASS grass at geni.cemtlo.com
Mon Apr 23 06:43:13 EDT 2001


From: Markus Neteler <neteler at geog.uni-hannover.de>
> Hi Edzer, hi all,
> (cc to grass5)
>
> I would like to know the opinion of the develovers on this:
>
> On Mon, Apr 23, 2001 at 12:05:16PM +0200, Edzer J. Pebesma wrote:
> > Hi Markus,
> > 
> > according to the programmers manual, G_fatal is defined as
> > 
> > int G_fatal_error(char *);
> > 
> > but according to gisdefs.h, it is
> > 
> > int G_fatal_error(char *,...);
> > 
> > I see that quite some code is relying on the second definition.
> > Should it be changed in the progr. manual, or should everyone 
> > adopt the former?
> > 

Hi all,

src/libes/gis/error.c defines the latter(G_fatal_error(char *msg,...),
G_warning(char *msg,...)). And its usage is more convenient than the former.
The former requires an additional buffer to store a message in most cases.

Just my thought.

Regards,
Huidae Cho

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list