]> git.ipfire.org Git - thirdparty/make.git/commit
Update ancient glob/fnmatch implementations
authorPaul Smith <psmith@gnu.org>
Mon, 2 Jan 2023 05:52:32 +0000 (00:52 -0500)
committerPaul Smith <psmith@gnu.org>
Tue, 3 Jan 2023 03:53:05 +0000 (22:53 -0500)
commitf91b8bbb34ff210ad72bc529c9bd5c6102e27adc
tree7ea5adb1ca6b822e740741868f5dc4d57d605219
parent8dc66b6c3123ac15a8a0c42d27e16b79c1686743
Update ancient glob/fnmatch implementations

I looked again at trying to use the latest gnulib implemenentations
of GNU glob and fnmatch, and the effort required to extract them
from gnulib and make them portable to systems which don't support
configure is simply far too daunting for me.  However it's clear
that the previous implementations are growing too long on the tooth
to continue to be used without some maintenance, so perform some
upkeep on them.

- Remove support for pre-ANSI function definitions.
- Remove the obsolete "register" keyword.
- Assume standard ISO C90/C99 header file support.
- Assume standard ISO C "void" and "const" support.
- Avoid symbols prefixed with "__" as they're reserved.

* maintMakefile: Add a rule to verify lib has the latest content.
* src/dir.c: Use void* not __ptr_t which was removed.
* gl/lib/glob.c: See above.
* gl/lib/fnmatch.in.h: See above.
* gl/lib/glob.in.h: See above.
* gl/lib/fnmatch.c: See above.  Remove __strchrnul(): it is not
checked anywhere and is only used in one place anyway.
gl/lib/fnmatch.c
gl/lib/fnmatch.in.h
gl/lib/glob.c
gl/lib/glob.in.h
maintMakefile
src/dir.c