| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef __LUA_H__ |
| #define __LUA_H__ |
| |
| #if defined(HAVE_LUA) |
| |
| #include <lua.h> |
| #include <lualib.h> |
| #include <lauxlib.h> |
| |
| |
| |
| |
| |
| |
| |
| |
| enum lua_rm_status { |
| |
| |
| |
| |
| LUA_RM_FAILURE = 0, |
| |
| |
| |
| LUA_RM_NOMATCH, |
| |
| |
| |
| |
| LUA_RM_MATCH, |
| |
| |
| |
| |
| LUA_RM_MATCH_AND_CHANGE, |
| }; |
| |
| |
| |
| |
| |
| lua_State *lua_initialize(const char *file); |
| |
| void lua_setup_prefix_table(lua_State *L, const struct prefix *prefix); |
| |
| enum lua_rm_status lua_run_rm_rule(lua_State *L, const char *rule); |
| |
| |
| |
| |
| |
| |
| const char *get_string(lua_State *L, const char *key); |
| int get_integer(lua_State *L, const char *key); |
| #endif |
| #endif |