0010-Fix-Linkage.patch (1281B)
1 diff --git a/deps/lua-compat/c-api/compat-5.3.c b/deps/lua-compat/c-api/compat-5.3.c 2 index 4395bbc..4a8877c 100644 3 --- a/deps/lua-compat/c-api/compat-5.3.c 4 +++ b/deps/lua-compat/c-api/compat-5.3.c 5 @@ -491,17 +491,6 @@ COMPAT53_API int lua_geti (lua_State *L, int index, lua_Integer i) { 6 } 7 8 9 -COMPAT53_API int lua_isinteger (lua_State *L, int index) { 10 - if (lua_type(L, index) == LUA_TNUMBER) { 11 - lua_Number n = lua_tonumber(L, index); 12 - lua_Integer i = lua_tointeger(L, index); 13 - if (i == n) 14 - return 1; 15 - } 16 - return 0; 17 -} 18 - 19 - 20 static void compat53_reverse (lua_State *L, int a, int b) { 21 for (; a < b; ++a, --b) { 22 lua_pushvalue(L, a); 23 diff --git a/deps/lua-compat/c-api/compat-5.3.h b/deps/lua-compat/c-api/compat-5.3.h 24 index 2309294..8e67bae 100644 25 --- a/deps/lua-compat/c-api/compat-5.3.h 26 +++ b/deps/lua-compat/c-api/compat-5.3.h 27 @@ -244,9 +244,6 @@ typedef int (*lua_KFunction)(lua_State *L, int status, lua_KContext ctx); 28 #define lua_geti COMPAT53_CONCAT(COMPAT53_PREFIX, _geti) 29 COMPAT53_API int lua_geti (lua_State *L, int index, lua_Integer i); 30 31 -#define lua_isinteger COMPAT53_CONCAT(COMPAT53_PREFIX, _isinteger) 32 -COMPAT53_API int lua_isinteger (lua_State *L, int index); 33 - 34 #define lua_numbertointeger(n, p) \ 35 ((*(p) = (lua_Integer)(n)), 1) 36