summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-26 20:04:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-26 20:04:48 -0700
commitbe2fd6ae7369ed83243637c3e08773a632ebf3b6 (patch)
treea7445b4a0bf67b203d0fbc32d5d55a159b020395 /regex.c
parent26de3caa3bfd35c0cba8f6bc043cdfad833957cc (diff)
downloadtxr-be2fd6ae7369ed83243637c3e08773a632ebf3b6.tar.gz
txr-be2fd6ae7369ed83243637c3e08773a632ebf3b6.tar.bz2
txr-be2fd6ae7369ed83243637c3e08773a632ebf3b6.zip
Overhaul of self-load-path mechanism.
The self-load-path symbol macro is as of now deprecated. It simply expands to *load-path*. *load-path* is a new special variable which is dynamically bound to the path of a file being loaded. * eval.c (self_load_path_s): Global variable renamed to load_path_s. (sys_load): Bind *load-path* around processing of loaded file. (me_load): Expand (load x) simply to (sys:load x *load-path*). (set_get_symacro): Function removed. (reg_symacro): New static function. (eval_init): Initialize renamed load_path_s with interned symbol having the name *load-path*. Register the *load-path* special variable. Set up the sel-load-path symbol macro aliasing for *load-path*. * eval.h (self_load_path_s): Declaration renamed. * match.c (v_load): Bind *load-path* around loading or inclusion. * parser.c (load_rcfile): Bind *load-path* around loading of .txr_profile file. * txr.c (txr_main): Bind *load-path* instead of self-load-path symbol macro. * txr.1: Updated documentation for @(load) directive and load macro. Replaced documentation of self-load-path with *load-path*.
Diffstat (limited to 'regex.c')
0 files changed, 0 insertions, 0 deletions