bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] standards.texi error function


From: Richard Stallman
Subject: Re: [bug-gnulib] standards.texi error function
Date: Tue, 14 Dec 2004 18:22:42 -0500

    I was thinking of modifying error.h and error.c so that the *.m4 files
    aren't strictly necessary; if you omit them, you can simply use
    error.h and error.c as-is.

That would make it much handier, which is important for a thing like
this.

                                This would be simpler to integrate, though
    it would have some downsides as well: your application would always
    use your copy of the error module, rather than libc's version (if
    available),

Why is it complex to tell whether `error' is in libc, why does it need
a special macro?  Isn't AC_CHECK_FUNC sufficient?

    your copy wouldn't be reentrant since it would use
    strerror rather than strerror_r.

That doesn't matter in these cases, since replacing the old-style
error function would always pass 0 for the error code.





reply via email to

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