summaryrefslogtreecommitdiffstats
path: root/glob.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-03-14 12:02:02 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-03-14 12:02:02 -0700
commit488bc2f599aa6a2be792e36033ce087a9c5c7577 (patch)
tree41e9ebb73fc761ed60e8d988a0dadd10ebd7f3b6 /glob.c
parentd784d188d5da7c5e8d7253b7273c8e71f86485bc (diff)
downloadtxr-488bc2f599aa6a2be792e36033ce087a9c5c7577.tar.gz
txr-488bc2f599aa6a2be792e36033ce087a9c5c7577.tar.bz2
txr-488bc2f599aa6a2be792e36033ce087a9c5c7577.zip
lib: fix neglect to use self variable.
* arith.c (toint): Use self instead of repeating function name in diagnostic. * ftw.c (ftw_wrap): Likewise. * glib.c (glow_wrap): Likewise. * rand.c (make_random_state, random): Likewise. * lib.c (nreverse, reverse, remove_if, int_str, less, chr_str, chr_str_set, unintern, rehome_sym, in): Likewise. (vector, obj_print_impl): Pass self to helper function instead of repeating identical literal.
Diffstat (limited to 'glob.c')
-rw-r--r--glob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glob.c b/glob.c
index 0459c207..af72f04e 100644
--- a/glob.c
+++ b/glob.c
@@ -73,8 +73,8 @@ val glob_wrap(val pattern, val flags, val errfun)
if (s_errfunc) {
free(pat_u8);
- uw_throwf(error_s, lit("glob: glob cannot be re-entered from "
- "its error callback function"), nao);
+ uw_throwf(error_s, lit("~a: glob cannot be re-entered from "
+ "its error callback function"), self, nao);
}
s_errfunc = default_null_arg(errfun);