summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-02-14 06:39:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-02-14 06:39:51 -0800
commitde32dd693de485149b972cde39de3c7e735e2f5c (patch)
tree9f37877d8b1e4d48c5bdb189ca0cb03b33eeabbc
parent807405036dce4767b78e462fb783e91eef3b8b02 (diff)
downloadtxr-de32dd693de485149b972cde39de3c7e735e2f5c.tar.gz
txr-de32dd693de485149b972cde39de3c7e735e2f5c.tar.bz2
txr-de32dd693de485149b972cde39de3c7e735e2f5c.zip
cleanup: harmonize lisp1-eval-related symbol variables.
* eval.c (sys_lisp1_value_s): Declaration moved to be collocated with lisp1_setq_s. (lisp1_setq_s): Variable renamed to sys_lisp1_setq_s to match sys_lisp1_value_s. (do_expand): Follow rename of lisp1_setq_s. (eval_init): Follow rename; collocate initialization of vars. * protsym.c (lisp1_setq_s): Manually renamed to sys_lisp1_setq_s instead of full regeneration, which we do at release time.
-rw-r--r--eval.c12
-rw-r--r--protsym.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/eval.c b/eval.c
index 0a3ba209..f3d2180b 100644
--- a/eval.c
+++ b/eval.c
@@ -82,7 +82,7 @@ val caseq_star_s, caseql_star_s, casequal_star_s;
val memq_s, memql_s, memqual_s;
val eq_s, eql_s, equal_s;
val car_s, cdr_s, not_s, vecref_s;
-val setq_s, lisp1_setq_s, setqf_s, inc_s, zap_s;
+val setq_s, sys_lisp1_value_s, sys_lisp1_setq_s, setqf_s, inc_s, zap_s;
val for_s, for_star_s, each_s, each_star_s, collect_each_s, collect_each_star_s;
val for_op_s, each_op_s;
val append_each_s, append_each_star_s, while_s, while_star_s, until_star_s;
@@ -99,7 +99,7 @@ val macro_time_s, with_dyn_rebinds_s, macrolet_s;
val defsymacro_s, symacrolet_s, prof_s, switch_s;
val fbind_s, lbind_s, flet_s, labels_s;
val opip_s, oand_s, chain_s, chand_s;
-val load_path_s, load_recursive_s, sys_lisp1_value_s;
+val load_path_s, load_recursive_s;
val special_s, unbound_s;
val whole_k, form_k, symacro_k;
@@ -4386,7 +4386,7 @@ again:
return expand(first(args), menv);
} else if (sym == sys_lisp1_value_s) {
return expand_lisp1_value(form, menv);
- } else if (sym == lisp1_setq_s) {
+ } else if (sym == sys_lisp1_setq_s) {
return expand_lisp1_setq(form, menv);
} else if (sym == setqf_s) {
return expand_setqf(form, menv);
@@ -5665,7 +5665,8 @@ void eval_init(void)
tree_bind_s = intern(lit("tree-bind"), user_package);
mac_param_bind_s = intern(lit("mac-param-bind"), user_package);
setq_s = intern(lit("setq"), system_package);
- lisp1_setq_s = intern(lit("lisp1-setq"), system_package);
+ sys_lisp1_setq_s = intern(lit("lisp1-setq"), system_package);
+ sys_lisp1_value_s = intern(lit("lisp1-value"), system_package);
setqf_s = intern(lit("setqf"), system_package);
inc_s = intern(lit("inc"), user_package);
zap_s = intern(lit("zap"), user_package);
@@ -5738,7 +5739,6 @@ void eval_init(void)
chand_s = intern(lit("chand"), user_package);
load_path_s = intern(lit("*load-path*"), user_package);
load_recursive_s = intern(lit("*load-recursive*"), system_package);
- sys_lisp1_value_s = intern(lit("lisp1-value"), system_package);
qquote_init();
@@ -5776,7 +5776,7 @@ void eval_init(void)
reg_op(tree_bind_s, op_tree_bind);
reg_op(mac_param_bind_s, op_mac_param_bind);
reg_op(setq_s, op_setq);
- reg_op(lisp1_setq_s, op_lisp1_setq);
+ reg_op(sys_lisp1_setq_s, op_lisp1_setq);
reg_op(sys_lisp1_value_s, op_lisp1_value);
reg_op(setqf_s, op_setqf);
reg_op(for_op_s, op_for);
diff --git a/protsym.c b/protsym.c
index 78adb1ef..ad1bccc6 100644
--- a/protsym.c
+++ b/protsym.c
@@ -77,7 +77,7 @@ extern val into_k, intr_s, ipf_s, keyword_package_s, labels_s;
extern val lambda_s, lambda_set_s, last_s, lbind_s, lcons_s;
extern val le_double_s, le_float_s, le_int16_s, le_int32_s, le_int64_s;
extern val le_uint16_s, le_uint32_s, le_uint64_s, length_s, let_s;
-extern val let_star_s, lfilt_k, line_s, lines_k, lisp1_setq_s;
+extern val let_star_s, lfilt_k, line_s, lines_k, sys_lisp1_setq_s;
extern val list_k, list_s, list_star_s, listener_hist_len_s, listener_multi_line_p_s;
extern val listener_sel_inclusive_p_s, lists_k, lit_s, load_path_s, load_recursive_s;
extern val load_s, local_s, long_s, longest_k, lstr_s;
@@ -206,7 +206,7 @@ val *protected_sym[] = {
&lambda_s, &lambda_set_s, &last_s, &lbind_s, &lcons_s,
&le_double_s, &le_float_s, &le_int16_s, &le_int32_s, &le_int64_s,
&le_uint16_s, &le_uint32_s, &le_uint64_s, &length_s, &let_s,
- &let_star_s, &lfilt_k, &line_s, &lines_k, &lisp1_setq_s,
+ &let_star_s, &lfilt_k, &line_s, &lines_k, &sys_lisp1_setq_s,
&list_k, &list_s, &list_star_s, &listener_hist_len_s, &listener_multi_line_p_s,
&listener_sel_inclusive_p_s, &lists_k, &lit_s, &load_path_s, &load_recursive_s,
&load_s, &local_s, &long_s, &longest_k, &lstr_s,