summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-10 13:17:39 +0800
committerTitanSnow <[email protected]>2017-05-10 13:17:44 +0800
commit74084408890a446c97376d80f2b342fbab96191e (patch)
tree41c25512f1c7bde2cc8227e2321b191cfaaf55fe /core/src/xmake/machine.c
parent1fe068e98cac89e96c2f42f3a4685ce267dd33b5 (diff)
add readline.clear_history()
Diffstat (limited to 'core/src/xmake/machine.c')
-rw-r--r--core/src/xmake/machine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 5a8a7b4b8..50da4ea7c 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -108,6 +108,7 @@ tb_int_t xm_sandbox_interactive(lua_State* lua);
tb_int_t xm_readline_readline(lua_State* lua);
tb_int_t xm_readline_get_history_state(lua_State* lua);
tb_int_t xm_readline_add_history(lua_State* lua);
+tb_int_t xm_readline_clear_history(lua_State* lua);
#endif
/* //////////////////////////////////////////////////////////////////////////////////////
@@ -187,6 +188,7 @@ static luaL_Reg const g_readline_functions[] =
{ "readline", xm_readline_readline }
, { "get_history_state", xm_readline_get_history_state }
, { "add_history", xm_readline_add_history }
+, { "clear_history", xm_readline_clear_history }
, { tb_null, tb_null }
};
#endif