summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-02-05 14:25:59 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-02-05 14:25:59 -0800
commit03be4ba79f2fa68d966c81be4f32b36f9fe09813 (patch)
tree1532b50183d934167344604358b7583448f2043b /eval.c
parent1be4447a30aa5787b99ce2dec5c6977322aefebe (diff)
downloadtxr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index dc0c97b3..5b1f4818 100644
--- a/eval.c
+++ b/eval.c
@@ -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);