summaryrefslogtreecommitdiffstats
path: root/inst.nsi
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-05-31 19:36:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-05-31 19:36:06 -0700
commit661531cdc4529078c15c222fafe2da025c02591d (patch)
tree41443235b4dbf6714c128dd13aa51063f84d3c51 /inst.nsi
parent6846740ce44659a1f31e01054b0f1bcc8dc04c7a (diff)
downloadtxr-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 'inst.nsi')
0 files changed, 0 insertions, 0 deletions