projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move OPT_QUIT into the lua registry
[apps/madmutt.git]
/
lib-lua
/
lib-lua.h
diff --git
a/lib-lua/lib-lua.h
b/lib-lua/lib-lua.h
index
8983322
..
efad96c
100644
(file)
--- a/
lib-lua/lib-lua.h
+++ b/
lib-lua/lib-lua.h
@@
-24,10
+24,26
@@
# include "../config.h"
#endif
# include "../config.h"
#endif
+#include "lua-token.h"
+
+/* possible arguments to set_quadoption() */
+typedef enum quadopt_t {
+ M_NO,
+ M_YES,
+ M_ASKNO,
+ M_ASKYES
+} quadopt_t;
+
void mlua_initialize(void);
void mlua_shutdown(void);
int mlua_dofile(const char *filename);
int mlua_wrap(void (*errfun)(const char *fmt, ...), int status);
void mlua_initialize(void);
void mlua_shutdown(void);
int mlua_dofile(const char *filename);
int mlua_wrap(void (*errfun)(const char *fmt, ...), int status);
+const char *mlua_reggets(enum lua_token tk);
+quadopt_t mlua_reggetq(enum lua_token tk);
+
+void mlua_regsets(enum lua_token tk, const char *s);
+void mlua_regsetq(enum lua_token tk, quadopt_t q);
+
#endif
#endif