bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] automatic prototypes


From: Karl Berry
Subject: Re: [bug-gnulib] automatic prototypes
Date: Thu, 16 Dec 2004 09:56:31 -0500

    > +#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP
    > +/* Duplicate S, returning an identical malloc'd string.  */
    > +extern char *strdup (const char *s);
    > +#endif

Maybe it's not relevant, but don't far more programs use xstrdup than
strdup?  I know that libraries may use strdup to avoid fatal errors, but
except for Simon's case, are there (m)any others?

I had the impression that this sort of stuff went into a per-project
"system.h" which included config.h, did declarations like the above,
etc.  Isn't that safer than putting it directly in config.h?




reply via email to

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