aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.h
diff options
context:
space:
mode:
Diffstat (limited to 'c-api/compat-5.3.h')
-rw-r--r--c-api/compat-5.3.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h
index 886b5ba..02712f3 100644
--- a/c-api/compat-5.3.h
+++ b/c-api/compat-5.3.h
@@ -102,6 +102,15 @@ typedef struct luaL_Buffer_53 {
102} luaL_Buffer_53; 102} luaL_Buffer_53;
103#define luaL_Buffer luaL_Buffer_53 103#define luaL_Buffer luaL_Buffer_53
104 104
105/*
106 * In PUC-Rio 5.1, userdata is a simple FILE*
107 * In LuaJIT, it's a struct where the first member is a FILE*
108 * We can't support the `closef` member
109 */
110typedef struct luaL_Stream {
111 FILE *f;
112} luaL_Stream;
113
105#define lua_absindex COMPAT53_CONCAT(COMPAT53_PREFIX, _absindex) 114#define lua_absindex COMPAT53_CONCAT(COMPAT53_PREFIX, _absindex)
106COMPAT53_API int lua_absindex (lua_State *L, int i); 115COMPAT53_API int lua_absindex (lua_State *L, int i);
107 116