about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-22 20:30:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-22 20:30:13 -0700
commit9eb951608b3da86dd5d4cc81a799dcbd78f98736 (patch)
tree4d863f076b898aa588c254471e3b85a6f3d4d3b9 /src
parent0ab2c77e6cac76e7ee4879dd246f29986f7186fb (diff)
downloadteliva-9eb951608b3da86dd5d4cc81a799dcbd78f98736.tar.gz
purge notion of commandline history
Diffstat (limited to 'src')
-rw-r--r--src/lua.c2
-rw-r--r--src/luaconf.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/lua.c b/src/lua.c
index 3a46609..1f2953f 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -188,7 +188,6 @@ static int pushline (lua_State *L, int firstline) {
     lua_pushfstring(L, "return %s", b+1);  /* change it to `return' */
   else
     lua_pushstring(L, b);
-  lua_freeline(L, b);
   return 1;
 }
 
@@ -207,7 +206,6 @@ static int loadline (lua_State *L) {
     lua_insert(L, -2);  /* ...between the two lines */
     lua_concat(L, 3);  /* join them */
   }
-  lua_saveline(L, 1);
   lua_remove(L, 1);  /* remove line */
   return status;
 }
diff --git a/src/luaconf.h b/src/luaconf.h
index b15f61d..c0af7e0 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -266,8 +266,6 @@
 #define lua_readline(L,b,p)	\
 	((void)L, fputs(p, stdout), fflush(stdout),  /* show prompt */ \
 	fgets(b, LUA_MAXINPUT, stdin) != NULL)  /* get line */
-#define lua_saveline(L,idx)	{ (void)L; (void)idx; }
-#define lua_freeline(L,b)	{ (void)L; (void)b; }
 
 #endif