summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-23 21:38:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-23 21:38:50 -0700
commitd510a260dd1755961fe85b6653e9832f49b34201 (patch)
treef540fedfaed3c0becb8808a7b97c602efb8fd4ac /mpi
parent57f625f68909a4420e5621a2f40717427ecf63e2 (diff)
downloadtxr-d510a260dd1755961fe85b6653e9832f49b34201.tar.gz
txr-d510a260dd1755961fe85b6653e9832f49b34201.tar.bz2
txr-d510a260dd1755961fe85b6653e9832f49b34201.zip
Bugfix: -Dvar=val not seen in some Lisp code.
TXR Lisp files run from the command line do not see -Dvar=val bindings, whereas -p expressions do. The REPL sees the bindings, but not code loaded from it using (load "file.tl") because they are lexical. Let's keep these bindings as local lexicals for -p and -e forms, but install them as global lexicals for the other situations. * parser.c (repl): Get rid of the local repl_env made from the bindings that are passed in. Instead, before starting the REPL, loop through the bindings and install them as global lexicals with reg_varl. * txr.c (txr_main): Before processing a Lisp file, install the bindings as global lexicals with reg_varl.
Diffstat (limited to 'mpi')
0 files changed, 0 insertions, 0 deletions