0010-Fix-Linkage.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. -COMPAT53_API int lua_isinteger (lua_State *L, int index) {
  8. - if (lua_type(L, index) == LUA_TNUMBER) {
  9. - lua_Number n = lua_tonumber(L, index);
  10. - lua_Integer i = lua_tointeger(L, index);
  11. - if (i == n)
  12. - return 1;
  13. - }
  14. - return 0;
  15. -}
  16. -
  17. -
  18. static void compat53_reverse (lua_State *L, int a, int b) {
  19. for (; a < b; ++a, --b) {
  20. lua_pushvalue(L, a);
  21. diff --git a/deps/lua-compat/c-api/compat-5.3.h b/deps/lua-compat/c-api/compat-5.3.h
  22. index 2309294..8e67bae 100644
  23. --- a/deps/lua-compat/c-api/compat-5.3.h
  24. +++ b/deps/lua-compat/c-api/compat-5.3.h
  25. @@ -244,9 +244,6 @@ typedef int (*lua_KFunction)(lua_State *L, int status, lua_KContext ctx);
  26. #define lua_geti COMPAT53_CONCAT(COMPAT53_PREFIX, _geti)
  27. COMPAT53_API int lua_geti (lua_State *L, int index, lua_Integer i);
  28. -#define lua_isinteger COMPAT53_CONCAT(COMPAT53_PREFIX, _isinteger)
  29. -COMPAT53_API int lua_isinteger (lua_State *L, int index);
  30. -
  31. #define lua_numbertointeger(n, p) \
  32. ((*(p) = (lua_Integer)(n)), 1)