bug-gnulib
[Top][All Lists]
Advanced

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

Re: stdlib tweak


From: Jim Meyering
Subject: Re: stdlib tweak
Date: Tue, 22 Dec 2009 11:27:04 +0100

Eric Blake wrote:
> +static int (*check) (char const *, int, char const *) = symlinkat;
> +
>  #include <fcntl.h>
>  #include <errno.h>
>  #include <stdbool.h>
>
> in order to validate that a function is correctly declared when the user
> includes just the one header named in the standards.  We can then fix the
> fallout by making the *.in.h headers pull in the necessary pre-requisites for
> functions that declared in the wrong system header.  Any objections?

Good idea.

You might want to use a name less likely than "check"
to impinge on the name space of the test program.




reply via email to

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