diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-10-29 06:36:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-10-29 14:46:43 -0700 |
commit | 6896d02e5bdb2deb0f0b3d3becfe55dd9981a78b (patch) | |
tree | 9170e0a0036b6b5946414f7239a203f00ec968b4 /glob.c | |
parent | 7cab13d777f7c70ca3db2589c253d59f646c7e6d (diff) | |
download | txr-6896d02e5bdb2deb0f0b3d3becfe55dd9981a78b.tar.gz txr-6896d02e5bdb2deb0f0b3d3becfe55dd9981a78b.tar.bz2 txr-6896d02e5bdb2deb0f0b3d3becfe55dd9981a78b.zip |
naming: get the -func out, at least some of it.
The code base contains a lot of irksome _func which should be
_fun, and also the public functions func-get-form and
func-get-name are irksomely named. As a first step, we can
fix parameters which carry this suffix.
* glob.c (global_wrap): errfunc argument renamed to errfun.
* glob.h (global_wrap): Likewise.
* hash.h (hash_uni, hash_isec): join_func argument renamed
to joinfun.
* hash.h (hash_uni, hash_isec): Likewise.
* txr.1: fixed gen-func typo. Arguments renamed in
descriptions of hash-uni, hash-isec, iff, iffi, glob,
and ftw.
Diffstat (limited to 'glob.c')
-rw-r--r-- | glob.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,7 +65,7 @@ static int errfunc_thunk(const char *errpath, int errcode) return result ? 1 : 0; } -val glob_wrap(val pattern, val flags, val errfunc) +val glob_wrap(val pattern, val flags, val errfun) { cnum c_flags = c_num(default_arg(flags, zero)); char *pat_u8 = utf8_dup_to(c_str(pattern)); @@ -77,7 +77,7 @@ val glob_wrap(val pattern, val flags, val errfunc) "its error callback function"), nao); } - s_errfunc = default_null_arg(errfunc); + s_errfunc = default_null_arg(errfun); (void) glob(pat_u8, c_flags, s_errfunc ? errfunc_thunk : 0, &gl); |