aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-16 15:15:52 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-16 15:15:52 -0200
commit438a9fcc782754ce265412769519670475898f5c (patch)
tree0b9bb47c459416226d0f01224e717e0c02c0282b /llimits.h
parent7e2015a46df7976bddee313b994742e49e420714 (diff)
downloadlua-438a9fcc782754ce265412769519670475898f5c.tar.gz
lua-438a9fcc782754ce265412769519670475898f5c.tar.bz2
lua-438a9fcc782754ce265412769519670475898f5c.zip
LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not
affect the API and is seldom modified)
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index a751f9f5..921d058e 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.127 2015/01/16 13:26:55 roberto Exp roberto $ 2** $Id: llimits.h,v 1.128 2015/01/16 15:41:03 roberto Exp roberto $
3** Limits, basic types, and some other 'installation-dependent' definitions 3** Limits, basic types, and some other 'installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -165,6 +165,16 @@ typedef unsigned long Instruction;
165 165
166 166
167 167
168/*
169** Maximum length for short strings, that is, strings that are
170** internalized. (Cannot be smaller than reserved words or tags for
171** metamethods, as these strings must be internalized;
172** #("function") = 8, #("__newindex") = 10.)
173*/
174#if !defined(LUAI_MAXSHORTLEN)
175#define LUAI_MAXSHORTLEN 40
176#endif
177
168 178
169/* 179/*
170** Initial size for the string table (must be power of 2). 180** Initial size for the string table (must be power of 2).