diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-25 21:38:36 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-25 21:38:36 -0700 |
commit | a4eb1c9adc6e48c29dc679abbbdf049935ce299d (patch) | |
tree | dc8378a5570c7d91e281ce76084e108c5780c4f9 /struct.c | |
parent | 018b61e013dea9852c486510dd1a45985a9b8d5e (diff) | |
download | txr-a4eb1c9adc6e48c29dc679abbbdf049935ce299d.tar.gz txr-a4eb1c9adc6e48c29dc679abbbdf049935ce299d.tar.bz2 txr-a4eb1c9adc6e48c29dc679abbbdf049935ce299d.zip |
Stand-alone application support.
* txr.c (sysroot_init): Don't print "unable to calculate
sysroot" error message in the fallback case, and
use the absolute path of the executable directory
as the sysroot in this case.
(txr_main): Define static area prefixed by @(txr): header. If
a string is present in this data area then process it as an
argument. Treat the *args* variable carefully. If we use the
stored string as the argument, save the args in orig_args
variable, then later bind *args* to that. In the -e, -p and
related options processing, we bind *args* to the original
list so args are available to the expression being evaluated.
If the expression mutates *args* then we keep the mutated args
whether or not we are processing the stored string.
* txr.1: Documented in new sction, STAND-ALONE
APPLICATION SUPPORT.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions