summaryrefslogtreecommitdiff
path: root/gl/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use MK_OS_DOS macro instead of __MSDOS__Paul Smith2023-01-161-6/+6
| | | | | | * src/configh.dos: Set MK_OS_DOS to 1 * src/*: Convert #if refs to __MSDOS__, to use MK_OS_DOS. * gl/lib/*: Ditto.
* Rename WINDOWS32 macro to MK_OS_W32Paul Smith2023-01-151-14/+14
| | | | | | | | | | * configure.ac: Set MK_OS_W32 to 1 if we're on Windows32. * src/config.h.W32: Ditto. * mk/Windows32.mk: Ditto. * src/makeint.h: Convert #if refs to WINDOWS32, to use MK_OS_W32. * src/*: Ditto. * src/w32/*: Ditto. * gl/lib/*: Ditto.
* Rename VMS macro to MK_OS_VMSPaul Smith2023-01-152-11/+11
| | | | | | * src/makeint.h: Set MK_OS_VMS to 1 if we're on VMS. * src/*: Convert all #if references to VMS, to use MK_OS_VMS. * gl/lib/*: Ditto.
* * gl/lib/glob.c: Don't try to support _LIBC, don't use __stat()Paul Smith2023-01-071-35/+15
|
* Update ancient glob/fnmatch implementationsPaul Smith2023-01-024-281/+86
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Move our fnmatch/glob implementation into gl/libPaul Smith2022-07-094-0/+2221
The gl subdirectory contains our local versions of gnulib module implementations, so move fnmatch* and glob* from lib to gl/lib. * gl/modules/make-glob: Add a proper Files: section. * lib/.gitignore: Delete unnecessary ignore file: lib is empty. * .gitignore: Add lib/ as an ignored directory.