summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-07 20:47:57 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-07 20:47:57 -0700
commitb1c2b8641f584ddeaef872ee6425cadca706e97d (patch)
tree6d01c1623c6368e3a12456e23944892fd5324d7e /sysif.h
parentac22923c691dfaf40830bedf056ee8948427dced (diff)
downloadtxr-b1c2b8641f584ddeaef872ee6425cadca706e97d.tar.gz
txr-b1c2b8641f584ddeaef872ee6425cadca706e97d.tar.bz2
txr-b1c2b8641f584ddeaef872ee6425cadca706e97d.zip
Load and save repl history.
* parser.c (repl): If a HOME environment variable exists, then load the .txr_history file from the user's home directory and save it when exiting. * sysif.c (getenv_wrap): Static function changed to extern. * sysif.h (getenv_wrap): Declared.
Diffstat (limited to 'sysif.h')
-rw-r--r--sysif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysif.h b/sysif.h
index c54ddbad..b2b5ce2f 100644
--- a/sysif.h
+++ b/sysif.h
@@ -32,4 +32,5 @@ extern val dev_s, ino_s, mode_s, nlink_s, uid_s;
extern val gid_s, rdev_s, size_s, blksize_s, blocks_s;
extern val atime_s, mtime_s, ctime_s;
+val getenv_wrap(val name);
void sysif_init(void);