From 2e8e147bc5a23750ab3e2a145fccfbb39f9443df Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Sun, 8 Mar 2015 19:33:27 +0100 Subject: remove support for luaL_Stream (due to LuaJIT incompatibility) --- README.md | 2 -- c-api/compat-5.3.h | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/README.md b/README.md index 303758e..90dd063 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,6 @@ For Lua 5.1 additionally: * `LUA_OK` * `LUA_OP*` macros for `lua_arith` and `lua_compare` * `lua_Unsigned` -* `luaL_Stream` -* `LUA_FILEHANDLE` * `lua_absindex` * `lua_arith` * `lua_compare` diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index 87d5dfb..dc8d3ea 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h @@ -6,7 +6,6 @@ #include #include #include -#include #if defined(COMPAT53_PREFIX) @@ -71,18 +70,6 @@ #define LUA_OPLT 1 #define LUA_OPLE 2 -typedef struct luaL_Stream { - FILE *f; - /* The following field is for LuaJIT which adds a uint32_t field - * to file handles. */ -#if INT_MAX > 2147483640L - unsigned int type; -#else - unsigned long type; -#endif - lua_CFunction closef; -} luaL_Stream; - typedef size_t lua_Unsigned; typedef struct luaL_Buffer_53 { -- cgit v1.2.3-55-g6feb