diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-02-05 14:25:59 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-02-05 14:25:59 -0800 |
commit | 03be4ba79f2fa68d966c81be4f32b36f9fe09813 (patch) | |
tree | 1532b50183d934167344604358b7583448f2043b /eval.c | |
parent | 1be4447a30aa5787b99ce2dec5c6977322aefebe (diff) | |
download | txr-03be4ba79f2fa68d966c81be4f32b36f9fe09813.tar.gz txr-03be4ba79f2fa68d966c81be4f32b36f9fe09813.tar.bz2 txr-03be4ba79f2fa68d966c81be4f32b36f9fe09813.zip |
Use null_string throughout code base.
* eval.c (load): Use null_string instead of lit("").
* lib.c (obj_init): Likewise.
* match.c (LOG_MATCH, LOG_MISMATCH, do_txeval): Likewise.
* parser.c (regex_parse, lisp_parse_impl, find_matching_syms):
Likewise.
* stream.c (do_parse_mode): Likewise.
* txr.c (sysroot_init): Likewise.
(txr_main): Replace string(L"") with null_string.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4663,7 +4663,7 @@ val load(val target) open_txr_file(path, &txr_lisp_p, &name, &stream, self); - if (match_str(or2(get_line(stream), lit("")), lit("#!"), nil)) + if (match_str(or2(get_line(stream), null_string), lit("#!"), nil)) parser_set_lineno(self, stream, two); else seek_stream(stream, zero, from_start_k); |