summaryrefslogtreecommitdiff
path: root/src/luaconf.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2014-07-31 12:00:00 +0000
committerrepogen <>2014-07-31 12:00:00 +0000
commitd7648e85b78d53a2248de909868192598ad0eb69 (patch)
treec67708a14fd29f8ff7e4981aadb041c5ab577e08 /src/luaconf.h
parent3907bda05b0e73eba86487ad703e832ca14b64ce (diff)
downloadlua-github-5.3.0-alpha.tar.gz
Lua 5.3.0-alpha5.3.0-alpha
Diffstat (limited to 'src/luaconf.h')
-rw-r--r--src/luaconf.h43
1 files changed, 36 insertions, 7 deletions
diff --git a/src/luaconf.h b/src/luaconf.h
index 2bceab1c..d3db9267 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -1,5 +1,5 @@
/*
-** $Id: luaconf.h,v 1.207 2014/06/10 19:21:20 roberto Exp $
+** $Id: luaconf.h,v 1.212 2014/07/24 19:33:29 roberto Exp $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -211,6 +211,14 @@
/*
+@@ LUA_EXTRASPACE defines the size of a raw memory area associated with
+** a Lua state with very fast access.
+** CHANGE it if you need a different size.
+*/
+#define LUA_EXTRASPACE (sizeof(void *))
+
+
+/*
@@ LUA_QL describes how error messages quote program elements.
** CHANGE it if you want a different appearance.
*/
@@ -254,6 +262,22 @@
#define LUAI_MAXSHORTLEN 40
+/*
+@@ LUA_CTXT is the type of the context ('ctx') for continuation functions.
+@@ It must be a numerical type; Lua will use 'intptr_t' if available.
+*/
+#if defined (LUA_USE_C99)
+#include <stdint.h>
+#if defined (INTPTR_MAX) /* even in C99 this type is optional */
+#define LUA_CTXT intptr_t
+#endif
+#endif
+
+#if !defined(LUA_CTXT)
+/* default definition (the nearest thing to 'intptr_t' in C89) */
+#define LUA_CTXT ptrdiff_t
+#endif
+
/*
** {==================================================================
@@ -280,6 +304,17 @@
*/
#define LUA_COMPAT_BITLIB
+/*
+@@ LUA_COMPAT_IPAIRS controls the effectivness of the __ipairs metamethod.
+*/
+#define LUA_COMPAT_IPAIRS
+
+/*
+@@ LUA_COMPAT_APIUNSIGNED controls the presence of macros for
+** manipulating unsigned integers (lua_pushunsigned, lua_tounsigned, etc.)
+*/
+#define LUA_COMPAT_APIUNSIGNED
+
/*
@@ LUA_COMPAT_FLOATSTRING makes Lua format integral floats without a
@@ -569,7 +604,6 @@
@@ LUA_INTEGER_FMT is the format for writing integers.
@@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER.
@@ LUA_MININTEGER is the minimum value for a LUA_INTEGER.
-@@ LUA_MAXUNSIGNED is the maximum value for a LUA_UNSIGNED.
@@ lua_integer2str converts an integer to a string.
*/
@@ -595,7 +629,6 @@
#define LUA_INTEGER int
#define LUA_INTEGER_FRMLEN ""
-#define LUA_MAXUNSIGNED UINT_MAX
#define LUA_MAXINTEGER INT_MAX
#define LUA_MININTEGER INT_MIN
@@ -604,7 +637,6 @@
#define LUA_INTEGER long
#define LUA_INTEGER_FRMLEN "l"
-#define LUA_MAXUNSIGNED ULONG_MAX
#define LUA_MAXINTEGER LONG_MAX
#define LUA_MININTEGER LONG_MIN
@@ -615,7 +647,6 @@
#define LUA_INTEGER __int64
#define LUA_INTEGER_FRMLEN "I64"
-#define LUA_MAXUNSIGNED _UI64_MAX
#define LUA_MAXINTEGER _I64_MAX
#define LUA_MININTEGER _I64_MIN
@@ -624,7 +655,6 @@
#define LUA_INTEGER long long
#define LUA_INTEGER_FRMLEN "ll"
-#define LUA_MAXUNSIGNED ULLONG_MAX
#define LUA_MAXINTEGER LLONG_MAX
#define LUA_MININTEGER LLONG_MIN
@@ -639,7 +669,6 @@
#define LUA_INTEGER short int
#define LUA_INTEGER_FRMLEN ""
-#define LUA_MAXUNSIGNED ((LUA_UNSIGNED)USHRT_MAX)
#define LUA_MAXINTEGER SHRT_MAX
#define LUA_MININTEGER SHRT_MIN