aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-11-26 14:46:47 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-11-26 14:46:47 -0500
commit632eaa2f13c24519f29ac124de4da32f5497297e (patch)
treed2b84fbfd8dba279578f4630f038045e8260ce66 /src
parent5c6752f994c42d4f8095653d34c050c58411e3b5 (diff)
downloadlite-xl-plugin-manager-632eaa2f13c24519f29ac124de4da32f5497297e.tar.gz
lite-xl-plugin-manager-632eaa2f13c24519f29ac124de4da32f5497297e.zip
Changed things to use lua compiler.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 03f259e..3d10b0b 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -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;