diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 15:15:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 15:15:52 -0200 |
commit | 438a9fcc782754ce265412769519670475898f5c (patch) | |
tree | 0b9bb47c459416226d0f01224e717e0c02c0282b /llimits.h | |
parent | 7e2015a46df7976bddee313b994742e49e420714 (diff) | |
download | lua-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.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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). |