diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2022-11-26 14:46:47 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2022-11-26 14:46:47 -0500 |
commit | 632eaa2f13c24519f29ac124de4da32f5497297e (patch) | |
tree | d2b84fbfd8dba279578f4630f038045e8260ce66 | |
parent | 5c6752f994c42d4f8095653d34c050c58411e3b5 (diff) | |
download | lite-xl-plugin-manager-632eaa2f13c24519f29ac124de4da32f5497297e.tar.gz lite-xl-plugin-manager-632eaa2f13c24519f29ac124de4da32f5497297e.zip |
Changed things to use lua compiler.
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | src/lpm.c | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -4,3 +4,5 @@ lpm-* *.o lpm.lua.c lib/prefix +src/lpm.luac.c +src/lpm.luac @@ -530,8 +530,8 @@ static const luaL_Reg system_lib[] = { #endif -extern const char src_lpm_lua[]; -extern unsigned int src_lpm_lua_len; +extern const char src_lpm_luac[]; +extern unsigned int src_lpm_luac_len; int main(int argc, char* argv[]) { curl = curl_easy_init(); if (!curl) @@ -563,7 +563,7 @@ int main(int argc, char* argv[]) { #if LPM_LIVE if (luaL_loadfile(L, "src/lpm.lua") || lua_pcall(L, 0, 1, 0)) { #else - if (luaL_loadbuffer(L, src_lpm_lua, src_lpm_lua_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) { + if (luaL_loadbuffer(L, src_lpm_luac, src_lpm_luac_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) { #endif fprintf(stderr, "internal error when starting the application: %s\n", lua_tostring(L, -1)); return -1; |