On 05/15/2018 03:31 PM, Paul Smith wrote:
I understand that the goal is to have versions of these standard header files which can be used without config.h, but the GNU coding standards suggest that config.h must be included first in each compilation unit, before even system headers
As I understand it, the Gnulib .h files in question are intended to be useful even to programs that do not follow the GNU coding standards and do not necessarily even have a config.h.
Here's a thought. Perhaps we could replace each instance of "@" in our FOO.h.in files with "_aT_", and adjust all our other scripts accordingly, except that (1) on systems lacking 'sed' the makefiles just use 'cp' when creating FOO.h from FOO.h.in, and (2) we define the corresponding *_aT_* symbols in config.h. That way, you'd get the behavior you prefer even on development platforms lacking 'sed', and people running onĀ platforms with 'sed' will continue to get .h files that are useful to programs that do not follow the GNU coding standards.