diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-06-20 12:58:47 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-06-20 12:58:47 +0200 |
commit | 406b505a07c39095abc8c0c1dcfd989712930f7d (patch) | |
tree | 0a04aa58c852a08e765094c8ae3ebe8b287e6085 /src | |
parent | dade9f4849438cf1a62db6ac273934872083c233 (diff) | |
download | lite-xl-plugin-manager-406b505a07c39095abc8c0c1dcfd989712930f7d.tar.gz lite-xl-plugin-manager-406b505a07c39095abc8c0c1dcfd989712930f7d.zip |
Set variable name with xxd instead of relying on path
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1133,8 +1133,8 @@ static const luaL_Reg system_lib[] = { #ifdef LPM_STATIC - extern const char src_lpm_luac[]; - extern unsigned int src_lpm_luac_len; + extern const char lpm_luac[]; + extern unsigned int lpm_luac_len; #endif int main(int argc, char* argv[]) { @@ -1165,7 +1165,7 @@ int main(int argc, char* argv[]) { #ifndef LPM_STATIC if (luaL_loadfile(L, "src/lpm.lua") || lua_pcall(L, 0, 1, 0)) { #else - if (luaL_loadbuffer(L, src_lpm_luac, src_lpm_luac_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) { + if (luaL_loadbuffer(L, lpm_luac, 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; |