diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-09-03 07:16:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-03 07:16:31 -0700 |
commit | e55cc6a24144875732b16ff526ed7b6faea7c67a (patch) | |
tree | 1c7fe8328b23ff504aff992ebf3f865ee9ed87f6 /args.h | |
parent | c8d5fd566e7acc5ed3f42d210d4f494efde0772b (diff) | |
download | txr-e55cc6a24144875732b16ff526ed7b6faea7c67a.tar.gz txr-e55cc6a24144875732b16ff526ed7b6faea7c67a.tar.bz2 txr-e55cc6a24144875732b16ff526ed7b6faea7c67a.zip |
lookup_var: don't pass dyn_env explicitly.
Since lookup_var(nil, ...) skips the environment and goes for dyn_env,
there is no need to pass dyn_env explicitly; it's a bit of an
anti-pattern. The argument is intended for lexical scopes.
* eval.c (eval_exception, expand_eval, load): Pass nil to lookup_var
instead of the current dynamic environment.
* match.c (v_load): Likewise.
* parser.c (txr_parse, read_eval_ret_last): Likewise.
Diffstat (limited to 'args.h')
0 files changed, 0 insertions, 0 deletions