From b1c2b8641f584ddeaef872ee6425cadca706e97d Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 7 Sep 2015 20:47:57 -0700 Subject: 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. --- sysif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysif.c') diff --git a/sysif.c b/sysif.c index 5197d337..1d858820 100644 --- a/sysif.c +++ b/sysif.c @@ -671,7 +671,7 @@ static val pipe_wrap(void) #endif -static val getenv_wrap(val name) +val getenv_wrap(val name) { char *nameu8 = utf8_dup_to(c_str(name)); char *lookup = getenv(nameu8); -- cgit v1.2.3