diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-11-07 06:56:51 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-11-07 06:56:51 -0800 |
commit | 472b34daf3787e0a05891a1f1cdfc89316b8fc8b (patch) | |
tree | 906f7bb5aa916e9688b800929df84cacedf8ff24 /lib.c | |
parent | b0828e2dd7540651aa6863c8bc7814d86ad9401e (diff) | |
download | txr-472b34daf3787e0a05891a1f1cdfc89316b8fc8b.tar.gz txr-472b34daf3787e0a05891a1f1cdfc89316b8fc8b.tar.bz2 txr-472b34daf3787e0a05891a1f1cdfc89316b8fc8b.zip |
Fix wrong uses of ~s for function name string.
* ffi.c (make_ffi_type_enum): Use ~a for function name rather
than ~s because it's a string which is quoted under ~s.
* lib.c (chk_xalloc, string_extend, find_symbol,
intern_fallback): Likewise.
* stream.c (open_process, run): Likewise.
* sysif.c (exec_wrap, setgroups_wrap, dlclose_wrap): Likewise.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2844,7 +2844,7 @@ mem_t *chk_xalloc(ucnum m, ucnum n, val self) size_t size = mn; if ((m > 0 && mn / m != n) || (ucnum) size != mn) - uw_throwf(error_s, lit("~s: memory allocation size overflow"), + uw_throwf(error_s, lit("~a: memory allocation size overflow"), self, nao); return chk_malloc(size); @@ -3640,10 +3640,10 @@ val string_extend(val str, val tail) else if (integerp(tail)) delta = c_fixnum(tail, self); else - uw_throwf(error_s, lit("~s: tail ~s bad type"), self, str, nao); + uw_throwf(error_s, lit("~a: tail ~s bad type"), self, str, nao); if (NUM_MAX - delta - 1 < len) - uw_throwf(error_s, lit("~s: overflow"), self, nao); + uw_throwf(error_s, lit("~a: overflow"), self, nao); needed = len + delta + 1; @@ -5494,7 +5494,7 @@ val find_symbol(val str, val package_in) val found, sym; if (!stringp(str)) - uw_throwf(error_s, lit("~s: name ~s isn't a string"), self, str, nao); + uw_throwf(error_s, lit("~a: name ~s isn't a string"), self, str, nao); if ((sym = gethash_f(package->pk.symhash, str, mkcloc(found))) || found) return sym; @@ -5605,7 +5605,7 @@ val intern_fallback(val str, val package_in) val fblist = get_hash_userdata(package->pk.symhash); if (!stringp(str)) - uw_throwf(error_s, lit("~s: name ~s isn't a string"), self, str, nao); + uw_throwf(error_s, lit("~a: name ~s isn't a string"), self, str, nao); if (fblist) { val found; |