5 #ifndef LUADEBUG_COMPLETE_H 6 #define LUADEBUG_COMPLETE_H 13 struct luadebug_complete {
23 bool complete_push_table_context(
struct lua_State *L,
struct luadebug_complete *context,
26 char *complete_table(
struct lua_State *L,
struct luadebug_complete *context,
27 const char *text,
int state,
bool (*hidden)(
const char *text));
29 char *complete_keyword(
struct luadebug_complete *context,
const char *keywords[],
30 const char *text,
int state);
32 bool complete_underscore_hidden(
const char *text);
34 typedef char *(*complete_callback)(
struct lua_State *L,
struct luadebug_complete *context,
35 const char *text,
int state);
37 char *complete_generator(
struct lua_State *L,
struct luadebug_complete *context,
38 const complete_callback callbacks[],
const char *text,
int state);
40 char *complete_callback_lua_keyword(
struct lua_State *L,
struct luadebug_complete *context,
41 const char *text,
int state);
42 char *complete_callback_table(
struct lua_State *L,
struct luadebug_complete *context,
43 const char *text,
int state);
44 char *complete_callback_swig_get(
struct lua_State *L,
struct luadebug_complete *context,
45 const char *text,
int state);
46 char *complete_callback_swig_fn(
struct lua_State *L,
struct luadebug_complete *context,
47 const char *text,
int state);
48 char *complete_callback_global(
struct lua_State *L,
struct luadebug_complete *context,
49 const char *text,
int state);
50 char *complete_callback_fenv(
struct lua_State *L,
struct luadebug_complete *context,
51 const char *text,
int state);
53 char *complete_addchar(
const char *str,
char c);