bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] too many FOO_exit_failure variables


From: Bruno Haible
Subject: Re: [Bug-gnulib] too many FOO_exit_failure variables
Date: Fri, 18 Jul 2003 19:38:41 +0200
User-agent: KMail/1.5

Paul Eggert wrote:
> > An alternative to such a global *_exit_failure variable per module is
> > [except for 'xalloc'] to pass the desired error handling behaviour as an
> > argument.
>
> That behavior is less convenient for simple modules like xmemcoll and
> xmalloc.  It is useful for modules where fine-grained control is
> common and is hard to arrange by invoking the underyling module, but
> it's not necessary for these modules.

OK, for simple modules like these, where every program wants to exit() on
failure, I agree that it doesn't need a multitude of variables, and a single
'exit_failure' variable is enough. Very few programs use exit codes other
than EXIT_FAILURE anyway.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]