bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] new module proposal: verror


From: Bruno Haible
Subject: Re: [bug-gnulib] new module proposal: verror
Date: Tue, 8 Aug 2006 18:01:08 +0200
User-agent: KMail/1.9.1

Eric Blake wrote:
> Unfortunately, xvasprintf is not LGPL, so the verror module cannot be LGPL 
> for 
> now

Yes; it does not make sense for a library to call a function that may call
xalloc_die(). Using xvasprintf results in small and maintainable code.
You could also do it without xvasprintf: perform similar code as in
error.c, really calling vfprintf. To avoid the code duplication, you
could move the bulk of code from error.c to verror.c and then have the
'error' module rely on 'verror'.

Bruno




reply via email to

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