Skip to content

Commit

Permalink
Fix another silly typo, update LuaJIT functions table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymia committed May 8, 2021
1 parent e9d61e7 commit 8adb8b7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
48 changes: 26 additions & 22 deletions src/patch/native/posix/luajit.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,32 @@
#include "config.h"

static const char* luaJITSymbols[] = {
"lua_pushfstring", "luaL_typerror", "luaL_register", "lua_getfield", "lua_pushvfstring", "luaL_pushresult",
"luaopen_io", "lua_xmove", "lua_pushthread", "luaL_openlib", "luaL_addlstring", "lua_resume", "luaL_optnumber",
"lua_setfield", "luaopen_math", "lua_newuserdata", "luaJIT_profile_stop", "lua_gettable", "lua_gethookcount",
"lua_settop", "lua_rawequal", "lua_pushstring", "luaL_execresult", "lua_dump", "luaL_where", "lua_error",
"luaopen_ffi", "lua_settable", "luaL_loadfilex", "lua_getinfo", "lua_isnumber", "luaopen_base", "lua_equal",
"lua_upvalueid", "lua_sethook", "lua_next", "luaL_checklstring", "lua_topointer", "lua_tothread", "lua_gc",
"lua_createtable", "luaopen_jit", "lua_setfenv", "lua_pcall", "luaL_unref", "lua_call", "lua_type",
"luaL_newmetatable", "lua_concat", "lua_gethookmask", "lua_lessthan", "lua_tocfunction", "luaL_loadbuffer",
"lua_getmetatable", "luaL_loadstring", "luaopen_package", "lua_pushcclosure", "luaL_checkudata", "lua_gethook",
"lua_newstate", "lua_getupvalue", "luaL_optlstring", "luaJIT_setmode", "luaL_newstate", "lua_pushnil", "luaL_gsub",
"lua_getfenv", "luaL_findtable", "lua_objlen", "lua_remove", "lua_rawseti", "lua_close", "lua_pushlightuserdata",
"luaL_addstring", "luaL_checkinteger", "lua_rawset", "luaL_loadbufferx", "luaL_checknumber", "luaopen_table",
"lua_rawgeti", "luaopen_string", "luaL_loadfile", "luaL_addvalue", "lua_setupvalue", "luaopen_os", "luaL_callmeta",
"lua_gettop", "lua_replace", "luaL_prepbuffer", "lua_cpcall", "lua_getlocal", "lua_pushvalue", "luaL_traceback",
"lua_pushnumber", "luaL_ref", "lua_newthread", "lua_isstring", "lua_iscfunction", "lua_touserdata",
"lua_tolstring", "lua_setlocal", "luaL_checkany", "lua_checkstack", "lua_getallocf", "luaL_optinteger",
"luaL_checktype", "luaopen_bit", "lua_rawget", "lua_load", "luaL_checkstack", "lua_pushlstring", "lua_toboolean",
"lua_insert", "luaL_checkoption", "luaL_fileresult", "luaopen_debug", "luaJIT_profile_start", "lua_tonumber",
"lua_typename", "luaL_buffinit", "luaJIT_profile_dumpstack", "lua_tointeger", "luaL_error", "lua_pushboolean",
"lua_status", "lua_yield", "luaL_openlibs", "luaL_getmetafield", "lua_upvaluejoin", "lua_setallocf",
"lua_setmetatable", "lua_loadx", "lua_isuserdata", "lua_pushinteger", "lua_getstack", "luaL_argerror",
"lua_atpanic"
"lua_atpanic", "lua_call", "lua_checkstack", "lua_close", "lua_concat", "lua_copy", "lua_cpcall",
"lua_createtable", "lua_dump", "lua_equal", "lua_error", "lua_gc", "lua_getallocf", "lua_getexdata",
"lua_getexdata2", "lua_getfenv", "lua_getfield", "lua_gethook", "lua_gethookcount", "lua_gethookmask",
"lua_getinfo", "lua_getlocal", "lua_getmetatable", "lua_getstack", "lua_gettable", "lua_gettop",
"lua_getupvalue", "lua_insert", "lua_iscfunction", "lua_isnumber", "lua_isstring", "lua_isuserdata",
"lua_isyieldable", "luaJIT_profile_dumpstack", "luaJIT_profile_start", "luaJIT_profile_stop",
"luaJIT_setmode", "luaJIT_version_2_1_0_beta3", "luaL_addlstring", "luaL_addstring", "luaL_addvalue",
"luaL_argerror", "luaL_buffinit", "luaL_callmeta", "luaL_checkany", "luaL_checkinteger", "luaL_checklstring",
"luaL_checknumber", "luaL_checkoption", "luaL_checkstack", "luaL_checktype", "luaL_checkudata", "luaL_error",
"lua_lessthan", "luaL_execresult", "luaL_fileresult", "luaL_findtable", "luaL_getmetafield", "luaL_gsub",
"luaL_loadbuffer", "luaL_loadbufferx", "luaL_loadfile", "luaL_loadfilex", "luaL_loadstring",
"luaL_newmetatable", "luaL_newstate", "lua_load", "lua_loadx", "luaL_openlib", "luaL_openlibs",
"luaL_optinteger", "luaL_optlstring", "luaL_optnumber", "luaL_prepbuffer", "luaL_pushmodule",
"luaL_pushresult", "luaL_ref", "luaL_register", "luaL_setfuncs", "luaL_setmetatable", "luaL_testudata",
"luaL_traceback", "luaL_typerror", "luaL_unref", "luaL_where", "lua_newstate", "lua_newthread",
"lua_newuserdata", "lua_next", "lua_objlen", "luaopen_base", "luaopen_bit", "luaopen_debug", "luaopen_ffi",
"luaopen_io", "luaopen_jit", "luaopen_math", "luaopen_os", "luaopen_package", "luaopen_string",
"luaopen_table", "lua_pcall", "lua_pushboolean", "lua_pushcclosure", "lua_pushfstring", "lua_pushinteger",
"lua_pushlightuserdata", "lua_pushlstring", "lua_pushnil", "lua_pushnumber", "lua_pushstring",
"lua_pushthread", "lua_pushvalue", "lua_pushvfstring", "lua_rawequal", "lua_rawget", "lua_rawgeti",
"lua_rawset", "lua_rawseti", "lua_remove", "lua_replace", "lua_resetthread", "lua_resume", "lua_setallocf",
"lua_setexdata", "lua_setexdata2", "lua_setfenv", "lua_setfield", "lua_sethook", "lua_setlocal",
"lua_setmetatable", "lua_settable", "lua_settop", "lua_setupvalue", "lua_status", "lua_toboolean",
"lua_tocfunction", "lua_tointeger", "lua_tointegerx", "lua_tolstring", "lua_tonumber", "lua_tonumberx",
"lua_topointer", "lua_tothread", "lua_touserdata", "lua_type", "lua_typename", "lua_upvalueid",
"lua_upvaluejoin", "lua_version", "lua_xmove", "lua_yield", "recff_thread_exdata", "recff_thread_exdata2"
};

__attribute__((constructor(CONSTRUCTOR_HOOK_INIT))) static void installLuaJIT() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ if _mpPatch and _mpPatch.loaded and not _mpPatch.patch.shared.printVersionRan th
_mpPatch.debugPrint("Running on ".._VERSION..".")
end
if not _mpPatch.version.getBoolean("mppatch.version.clean") then
_mpPrint.debugPrint("Tree Status: ".._mpPatch.version.get("build.treestatus"))
_mpPatch.debugPrint("Tree Status: ".._mpPatch.version.get("build.treestatus"))
end
end

0 comments on commit 8adb8b7

Please sign in to comment.