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 /lstring.c | |
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)
Diffstat (limited to 'lstring.c')
-rw-r--r-- | lstring.c | 13 |
1 files changed, 1 insertions, 12 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 | */ |