[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnulib] Re: automatic prototypes
From: |
Jim Meyering |
Subject: |
[bug-gnulib] Re: automatic prototypes |
Date: |
Thu, 03 Feb 2005 11:45:21 +0100 |
Simon Josefsson <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
...
> If you use gnulib, you currently need to include memmem.h, memrchr.h
> etc, which all are non-standard. Why is that so different from
> including string-gnu.h?
It's not.
I was hoping to make those .h files unnecessary.
>> That sounds good, but it would be better not to have to include
>> any extra file at all. For functions involving only types like
>> struct stat*, char*, uid_t, gid_t, pid_t, size_t, ssize_t, etc.,
>> that shouldn't be hard.
>
> I'd prefer this as well. This could be solved by putting the
> prototypes for non-standard functions into config.h, see my "automatic
> prototype" proposal.
>
> Admittedly, it might be cleaner if there was a 'gnulib.h' which was
> generated by gnulib-tool, and that file could be included. Then I
> could include it in config.h, and others could include it in their
> source code explicitly.
If possible, I'd like to find a solution that doesn't require
the use of gnulib-tool.