diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-05-31 19:36:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-05-31 19:36:06 -0700 |
commit | 661531cdc4529078c15c222fafe2da025c02591d (patch) | |
tree | 41443235b4dbf6714c128dd13aa51063f84d3c51 /win | |
parent | 6846740ce44659a1f31e01054b0f1bcc8dc04c7a (diff) | |
download | txr-661531cdc4529078c15c222fafe2da025c02591d.tar.gz txr-661531cdc4529078c15c222fafe2da025c02591d.tar.bz2 txr-661531cdc4529078c15c222fafe2da025c02591d.zip |
load: now establishes a block named load.
Files loaded from the command line or via the load function
or @(load) directive now have a block named load in scope.
Thus (return-from load <expr>) may be used to abort a
load when it is finished. The load function will then
return the value of <expr>.
* eval.c (load): Bind a load block around the whole thing
and use the captured return value as the function's
return value.
* match.c (v_load): Bind the load block here too. Ensure
that if the block return is taken, the ret variable
contains next_spec_k, so that processing continues with
whatever directive follows the @(load).
* txr.c (txr_main): Bind the block in severl cases that
load code.
* txr.1: Documented.
Diffstat (limited to 'win')
0 files changed, 0 insertions, 0 deletions