purge notion of commandline history

This commit is contained in:
Kartik K. Agaram 2021-10-22 20:30:13 -07:00
parent 0ab2c77e6c
commit 9eb951608b
2 changed files with 0 additions and 4 deletions

View File

@ -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;
}

View File

@ -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