aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luaconf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/luaconf.h b/src/luaconf.h
index de519186..acfd81ac 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -90,7 +90,12 @@
90/* Note: changing the following defines breaks the Lua 5.1 ABI. */ 90/* Note: changing the following defines breaks the Lua 5.1 ABI. */
91#define LUA_INTEGER ptrdiff_t 91#define LUA_INTEGER ptrdiff_t
92#define LUA_IDSIZE 60 /* Size of lua_Debug.short_src. */ 92#define LUA_IDSIZE 60 /* Size of lua_Debug.short_src. */
93#define LUAL_BUFFERSIZE BUFSIZ /* Size of lauxlib and io.* buffers. */ 93/*
94** Size of lauxlib and io.* on-stack buffers. Weird workaround to avoid using
95** unreasonable amounts of stack space, but still retain ABI compatibility.
96** Blame Lua for depending on BUFSIZ in the ABI, blame **** for wrecking it.
97*/
98#define LUAL_BUFFERSIZE (BUFSIZ > 16384 ? 8192 : BUFSIZ)
94 99
95/* The following defines are here only for compatibility with luaconf.h 100/* The following defines are here only for compatibility with luaconf.h
96** from the standard Lua distribution. They must not be changed for LuaJIT. 101** from the standard Lua distribution. They must not be changed for LuaJIT.