aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2023-06-20 09:14:53 -0400
committerGitHub <noreply@github.com>2023-06-20 09:14:53 -0400
commit9a1e637e379b59aaa29fe48c73783667981ad2fd (patch)
tree64dad26552fe39c90c94b79b9b3c1fd95d42f1e7 /src
parente655a6add9af02a0b40e065fc62127b92b2638f1 (diff)
parent149960eac5348ae46b5b56643d50cf69d9ac8a1c (diff)
downloadlite-xl-plugin-manager-9a1e637e379b59aaa29fe48c73783667981ad2fd.tar.gz
lite-xl-plugin-manager-9a1e637e379b59aaa29fe48c73783667981ad2fd.zip
Merge pull request #27 from lite-xl/revert-25-PR/xxd_set_name
Revert "Set variable name with xxd instead of relying on path"
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 8c19209..eccec2b 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1133,8 +1133,8 @@ static const luaL_Reg system_lib[] = {
#ifdef LPM_STATIC
- extern const char lpm_luac[];
- extern unsigned int lpm_luac_len;
+ extern const char src_lpm_luac[];
+ extern unsigned int src_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, lpm_luac, lpm_luac_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;