diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-11 11:14:42 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-11 11:14:42 -0300 |
| commit | c2361e0b6108a2e7e53dcfcdc3a569fcc4a1e31d (patch) | |
| tree | e780ae40bfaaf2c7be0d297c6397cf42a9d9b9e1 | |
| parent | 77cbd817d1a525a161f8f24e98459191edb9a181 (diff) | |
| download | lua-c2361e0b6108a2e7e53dcfcdc3a569fcc4a1e31d.tar.gz lua-c2361e0b6108a2e7e53dcfcdc3a569fcc4a1e31d.tar.bz2 lua-c2361e0b6108a2e7e53dcfcdc3a569fcc4a1e31d.zip | |
definition for 'LUAI_MAXSHORTLEN' moved to luaconf.h (too important)
| -rw-r--r-- | lstring.c | 13 | ||||
| -rw-r--r-- | luaconf.h | 9 |
2 files changed, 9 insertions, 13 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstring.c,v 2.22 2012/02/01 21:57:15 roberto Exp roberto $ | 2 | ** $Id: lstring.c,v 2.23 2012/03/28 18:28:25 roberto Exp roberto $ |
| 3 | ** String table (keeps all strings handled by Lua) | 3 | ** String table (keeps all strings handled by Lua) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -19,17 +19,6 @@ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | /* | 21 | /* |
| 22 | ** maximum length for short strings, that is, strings that are | ||
| 23 | ** internalized. (Cannot be smaller than reserved words or tags | ||
| 24 | ** for metamethods, as these strings must be internalized; | ||
| 25 | ** #("function") = 8, #("__newindex") = 10.) | ||
| 26 | */ | ||
| 27 | #if !defined(LUAI_MAXSHORTLEN) | ||
| 28 | #define LUAI_MAXSHORTLEN 40 | ||
| 29 | #endif | ||
| 30 | |||
| 31 | |||
| 32 | /* | ||
| 33 | ** Lua will use at most ~(2^LUAI_HASHLIMIT) bytes from a string to | 22 | ** Lua will use at most ~(2^LUAI_HASHLIMIT) bytes from a string to |
| 34 | ** compute its hash | 23 | ** compute its hash |
| 35 | */ | 24 | */ |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.170 2011/12/06 16:58:36 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.171 2012/05/11 14:10:50 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -223,6 +223,13 @@ | |||
| 223 | (fprintf(stderr, (s), (p)), fflush(stderr)) | 223 | (fprintf(stderr, (s), (p)), fflush(stderr)) |
| 224 | 224 | ||
| 225 | 225 | ||
| 226 | /* | ||
| 227 | @@ LUAI_MAXSHORTLEN is the maximum length for short strings, that is, | ||
| 228 | ** strings that are internalized. (Cannot be smaller than reserved words | ||
| 229 | ** or tags for metamethods, as these strings must be internalized; | ||
| 230 | ** #("function") = 8, #("__newindex") = 10.) | ||
| 231 | */ | ||
| 232 | #define LUAI_MAXSHORTLEN 40 | ||
| 226 | 233 | ||
| 227 | 234 | ||
| 228 | 235 | ||
