diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-09-12 20:59:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-09-12 20:59:25 -0700 |
commit | 910294bcb183aa31de761c39f500d21d9448bd67 (patch) | |
tree | 4dd663976170ae05458b25a6e88db3c73534ded3 /Makefile | |
parent | 4cfe0b06693df6003c4d978fd2ed6924bb2345ba (diff) | |
download | txr-910294bcb183aa31de761c39f500d21d9448bd67.tar.gz txr-910294bcb183aa31de761c39f500d21d9448bd67.tar.bz2 txr-910294bcb183aa31de761c39f500d21d9448bd67.zip |
New glob* function.
The glob* function supports brace expansion, the **
pattern for matching zero or more path components,
as well as a sane sort for path names.
glob* relies on brace expansion written in Lisp;
the ** processing and sorting is done by a glob-compatible
C function called super_glob that uses glob.
* autoload.c (glob_set_entries, glob_instantiate): New static
functions.
(autoload_init): Register autoload of stdlib/glob module.
* glob.c (GLOB_XNOBRACE, GLOB_XSTAR): New macros.
(glob_wrap): Call super_glob instead of glob if GLOB_XSTAR
is present in flags. Avoid passing extension flags to glob.
(super_glob_find_inner, super_glob_rec, glob_path_cmp,
glob_str_cmp, super_glob): New static functions.
(glob_init): Register sys:glob-xstar, and glob-xnobrace.
sys:glob-xstar is used by glob* to request support for
the ** pattern from glob.
* stdlib/glob.tl: New file.
* tests/018/glob.tl: New file.
* txr.1: Documented.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions