diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-10 06:46:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-10 06:46:40 -0700 |
commit | e046e1890f4655478a99fa7c1cb078eefdc54e00 (patch) | |
tree | 29f3aec8a500b6113534457fbf593577389bfb8b /arith.h | |
parent | 0f55e4b727694c0c926ef0979f11b438edccc675 (diff) | |
download | txr-e046e1890f4655478a99fa7c1cb078eefdc54e00.tar.gz txr-e046e1890f4655478a99fa7c1cb078eefdc54e00.tar.bz2 txr-e046e1890f4655478a99fa7c1cb078eefdc54e00.zip |
Bugfix: make self-path visible to Lisp.
The self-path variable is not bound in TXR Lisp scripts
or the command line.
* txr.c (txr_main): Set self-path to "cmdline-expr" before
command line Lisp evaluations. (For TXR pattern language
syntax invoked in a -c, it continues to be "cmdline").
Set self-path to the file name when reading a Lisp file.
Also, the legacy, undocumented *self-path* is only set
for TXR scripts, and is reverted to being a special variable,
not a global lexical.
* txr.1: Documented self-path in more detail.
Diffstat (limited to 'arith.h')
0 files changed, 0 insertions, 0 deletions