summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-10-30 06:36:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-10-30 06:36:01 -0700
commite7f11c6047409be9ac2b2a3a6eb4e5c58c0bc38b (patch)
tree257cfd33baef8551ef229a24b0eda16c0bd8b5c9
parent214a514bdb2df824eb7fc5e46ab01cc62bcf62f8 (diff)
downloadtxr-e7f11c6047409be9ac2b2a3a6eb4e5c58c0bc38b.tar.gz
txr-e7f11c6047409be9ac2b2a3a6eb4e5c58c0bc38b.tar.bz2
txr-e7f11c6047409be9ac2b2a3a6eb4e5c58c0bc38b.zip
initialization: use self_path_s instead of re-interning.
* txr.c (txr_main): When establishing self-path with a new value, use self_path_s instead of calling intern on the symbol name again.
-rw-r--r--txr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.c b/txr.c
index a70c0ed0..1ef43001 100644
--- a/txr.c
+++ b/txr.c
@@ -1003,7 +1003,7 @@ int txr_main(int argc, char **argv)
}
reg_var(args_s, or2(orig_args, arg_list));
- reg_varl(intern(lit("self-path"), user_package), spec_file_str);
+ reg_varl(self_path_s, spec_file_str);
env_vbind(dyn_env, load_recursive_s, t);