diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-07 20:47:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-07 20:47:57 -0700 |
commit | b1c2b8641f584ddeaef872ee6425cadca706e97d (patch) | |
tree | 6d01c1623c6368e3a12456e23944892fd5324d7e /sysif.h | |
parent | ac22923c691dfaf40830bedf056ee8948427dced (diff) | |
download | txr-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |