diff options
| author | Robert Clausecker <fuz@FreeBSD.org> | 2023-05-22 12:40:48 +0200 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2023-05-25 11:39:32 +0200 |
| commit | 4cde7f7013b0cc1eb1ddda5abb80483d3eedec42 (patch) | |
| tree | 96d9e1818794c7617bc3478fdd0d6888241ee634 /emulators/tic-80/files/patch-vendor_moonscript_moonscript.c | |
| parent | 5d67d41a246dca42682ce74b51e54a534fb1221d (diff) | |
emulators/tic-80: unbundle devel/lua-lpeg
This one is needed for the moonscript dependency.
Once moonscript is unbundled, the dependency can be removed entirely.
Diffstat (limited to 'emulators/tic-80/files/patch-vendor_moonscript_moonscript.c')
| -rw-r--r-- | emulators/tic-80/files/patch-vendor_moonscript_moonscript.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/emulators/tic-80/files/patch-vendor_moonscript_moonscript.c b/emulators/tic-80/files/patch-vendor_moonscript_moonscript.c new file mode 100644 index 000000000000..cf646cfbcbbf --- /dev/null +++ b/emulators/tic-80/files/patch-vendor_moonscript_moonscript.c @@ -0,0 +1,12 @@ +--- vendor/moonscript/moonscript.c.orig 2020-10-28 13:03:23 UTC ++++ vendor/moonscript/moonscript.c +@@ -27,9 +27,6 @@ void setloaded(lua_State* l, char* name) { + extern int luaopen_lpeg(lua_State *l); + + LUALIB_API int luaopen_moonscript(lua_State *l) { +- luaopen_lpeg(l); +- setloaded(l, "lpeg"); +- + if (luaL_loadbuffer(l, (const char *)moonscript_lua, moonscript_lua_len, "moonscript.lua") == 0) { + lua_call(l, 0, 1); + return 1; |
