X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Fruntime.c;h=b90d460ec61f6be23b3d872241672ea21c7144f1;hp=f0e909394efda88fb1e316e84a73bd7784fed602;hb=90f0c4dfb0480b5ce043c54f001d53ba6efc531b;hpb=4fb2fb9b1c03ad9ffd59ff86f7eaa697e46ef49d diff --git a/lib-lua/runtime.c b/lib-lua/runtime.c index f0e9093..b90d460 100644 --- a/lib-lua/runtime.c +++ b/lib-lua/runtime.c @@ -20,10 +20,13 @@ #include #include -#include "../alias.h" #include "../mutt.h" -#include "../charset.h" -#include "../buffy.h" +#include "../alias.li" +#include "../buffy.li" +#include "../charset.li" +#include "../crypt.li" +#include "../score.li" +#include static lua_State *L; @@ -38,12 +41,15 @@ void luaM_initialize(void) {LUA_STRLIBNAME, luaopen_string}, {LUA_MATHLIBNAME, luaopen_math}, {LUA_DBLIBNAME, luaopen_debug}, - {"MCore", luaopen_MCore}, + {"mod_core", luaopen_mod_core}, {"MTransport", luaopen_MTransport}, {"MAlias", luaopen_MAlias}, - {"MCharset", luaopen_MCharset}, - {"Mime", luaopen_Mime}, - {"Buffy", luaopen_Buffy}, + {"mod_cset", luaopen_mod_cset}, + {"mod_mime", luaopen_mod_mime}, + {"mod_buffy", luaopen_mod_buffy}, + {"mod_ssl", luaopen_mod_ssl}, + {"mod_crypt", luaopen_mod_crypt}, + {"mod_score", luaopen_mod_score}, }; int i; @@ -141,7 +147,7 @@ rx_t *luaM_rxnew(const char *val) char *luaM_pathnew(const char *val) { - char path[PATH_MAX]; + char path[_POSIX_PATH_MAX]; _mutt_expand_path(path, sizeof(path), val, 0); return m_strdup(path); }