summaryrefslogtreecommitdiffstats
path: root/txr.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-18 23:46:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-18 23:46:51 -0800
commitc720098b5f0eb58eef01fef4acbeccde00af2c75 (patch)
tree257c1010127a56d0641c84b4056c66e45fc70ec9 /txr.h
parent6dbb219a3fb2152ca9991a073df7e45c553eadf4 (diff)
downloadtxr-c720098b5f0eb58eef01fef4acbeccde00af2c75.tar.gz
txr-c720098b5f0eb58eef01fef4acbeccde00af2c75.tar.bz2
txr-c720098b5f0eb58eef01fef4acbeccde00af2c75.zip
* eval.c (env_hash): new function.
(eval_init): Register env and env_hash functions. Register prog_args and prog_args_full as *args* and *full-args*. * lib.c (timegm_hack): Invalidate env_list, after mucking with the environment via setenv and unsetenv. * txr.c (prog_args_full, prog_args): New global variables. (txr_main): Command-line processing converted to use TXR's library. Populates prog_args_full and prog_args. * txr.h (prog_args_full, prog_args): Declared. * txr.1: Documented *args*, *full-args*, env and env-hash.
Diffstat (limited to 'txr.h')
-rw-r--r--txr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.h b/txr.h
index e4c138b5..a8d21625 100644
--- a/txr.h
+++ b/txr.h
@@ -35,4 +35,4 @@ extern int opt_vg_debug;
extern int opt_derivative_regex;
extern const wchli_t *version;
extern const wchar_t *progname;
-extern val self_path;
+extern val self_path, prog_args_full, prog_args;