[Top][All Lists]

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

[bug-gnulib] Re: automatic prototypes

From: Paul Eggert
Subject: [bug-gnulib] Re: automatic prototypes
Date: Wed, 02 Feb 2005 09:50:56 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Jim Meyering <address@hidden> writes:

> Here's the change I'm considering for memrchr.m4.

The technique used for other glibc extensions (e.g., getcwd, getopt,)
lchown, mbswidth, memmem) is to have a .h file for that extension.
So we could have a file "memrchr.h" for memrchr.

However, that leads to a proliferation of little .h files.  Perhaps it
would be simpler and easier to have a file "string-gnu.h" that
contains all the GNU extensions to string.h, and consolidate
memrchr.h, memmem.h, into string-gnu.h.  Similarly for unistd-gnu.h
and getcwd/getopt, etc.

string-gnu.h could include string.h, so there'd be no need for a program
to include both files.

reply via email to

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