diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-01-29 21:33:30 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-01-29 21:33:30 -0800 |
commit | 37d6ecfd008f47b1087404fc17136655e430ef98 (patch) | |
tree | e4aabedf8a85e192d2efd44e111da474b05e11f5 /txr.c | |
parent | dc843d8cffca8efb3b6285b9efe93924c2a8c8c0 (diff) | |
download | txr-37d6ecfd008f47b1087404fc17136655e430ef98.tar.gz txr-37d6ecfd008f47b1087404fc17136655e430ef98.tar.bz2 txr-37d6ecfd008f47b1087404fc17136655e430ef98.zip |
Suppress undef warnings in command line file.
* txr.c (txr_main): Bind sys:*load-recursive* to t before
reading and evaluating forms, then bind to nil before entering
repl.
Diffstat (limited to 'txr.c')
-rw-r--r-- | txr.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1012,6 +1012,8 @@ int txr_main(int argc, char **argv) reg_varl(car(binding), cdr(binding)); } + env_vbind(dyn_env, load_recursive_s, t); + { val result = read_eval_stream(parse_stream, std_error, t); @@ -1033,6 +1035,7 @@ repl: reg_var(args_s, or2(orig_args, arg_list)); reg_varl(intern(lit("self-path"), user_package), lit("listener")); env_vbind(dyn_env, package_s, user_package); + env_vbind(dyn_env, load_recursive_s, nil); repl(bindings, std_input, std_output); #endif return 0; |