summaryrefslogtreecommitdiff
path: root/src/llimits.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2012-03-21 12:00:00 +0000
committerrepogen <>2012-03-21 12:00:00 +0000
commit1cb937cf2d4583482aadaff45b6628b39fdcd91e (patch)
tree614eba453350c41305e41d647e9e03d779314f89 /src/llimits.h
parent6ee889a587f9b600b564d5c0ba0350faab0387cd (diff)
downloadlua-github-5.2.1-work1.tar.gz
Lua 5.2.1-work15.2.1-work1
Diffstat (limited to 'src/llimits.h')
-rw-r--r--src/llimits.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/llimits.h b/src/llimits.h
index 48dc81f7..98f8fea0 100644
--- a/src/llimits.h
+++ b/src/llimits.h
@@ -1,5 +1,5 @@
/*
-** $Id: llimits.h,v 1.95 2011/12/06 16:58:36 roberto Exp $
+** $Id: llimits.h,v 1.96 2012/01/25 21:05:40 roberto Exp $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -125,6 +125,15 @@ typedef LUAI_UACNUMBER l_uacNumber;
/*
+** maximum length for short strings, that is, strings that are
+** internalized. (Cannot be smaller than reserved words or tags
+** for metamethods; #"function" = 8, #"__newindex" = 10; should
+** not be larger than 255, to allow future changes)
+*/
+#define LUA_MAXSHORTLEN (8 * sizeof(void*))
+
+
+/*
** type for virtual-machine instructions
** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h)
*/