2022-04-17 03:29:08 +00:00
|
|
|
#ifndef COSMOPOLITAN_THIRD_PARTY_LUA_LREPL_H_
|
|
|
|
#define COSMOPOLITAN_THIRD_PARTY_LUA_LREPL_H_
|
|
|
|
#include "third_party/linenoise/linenoise.h"
|
|
|
|
#include "third_party/lua/lauxlib.h"
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-04-23 01:55:28 +00:00
|
|
|
extern bool lua_repl_blocking;
|
|
|
|
extern bool lua_repl_isterminal;
|
2023-07-09 12:11:25 +00:00
|
|
|
extern const char *lua_progname;
|
2022-04-23 01:55:28 +00:00
|
|
|
extern struct linenoiseState *lua_repl_linenoise;
|
2022-04-24 16:59:22 +00:00
|
|
|
extern linenoiseCompletionCallback *lua_repl_completions_callback;
|
2022-04-23 01:55:28 +00:00
|
|
|
|
|
|
|
void lua_freerepl(void);
|
2022-06-27 20:01:58 +00:00
|
|
|
void lua_repl_lock(void);
|
|
|
|
void lua_repl_unlock(void);
|
2022-04-17 03:29:08 +00:00
|
|
|
int lua_loadline(lua_State *);
|
|
|
|
void lua_l_print(lua_State *);
|
2023-07-09 12:11:25 +00:00
|
|
|
void lua_initrepl(lua_State *);
|
2022-05-14 18:47:16 +00:00
|
|
|
void lua_sigint(lua_State *, int);
|
2022-04-17 03:29:08 +00:00
|
|
|
int lua_report(lua_State *, int);
|
|
|
|
int lua_runchunk(lua_State *, int, int);
|
|
|
|
void lua_l_message(const char *, const char *);
|
|
|
|
char *lua_readline_hint(const char *, const char **, const char **);
|
|
|
|
void lua_readline_completions(const char *, linenoiseCompletions *);
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_LUA_LREPL_H_ */
|