definition for 'LUAI_MAXSHORTLEN' moved to luaconf.h (too important)

This commit is contained in:
Roberto Ierusalimschy
2012-05-11 11:14:42 -03:00
parent 77cbd817d1
commit c2361e0b61
2 changed files with 9 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstring.c,v 2.22 2012/02/01 21:57:15 roberto Exp roberto $
** $Id: lstring.c,v 2.23 2012/03/28 18:28:25 roberto Exp roberto $
** String table (keeps all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@@ -18,17 +18,6 @@
#include "lstring.h"
/*
** maximum length for short strings, that is, strings that are
** internalized. (Cannot be smaller than reserved words or tags
** for metamethods, as these strings must be internalized;
** #("function") = 8, #("__newindex") = 10.)
*/
#if !defined(LUAI_MAXSHORTLEN)
#define LUAI_MAXSHORTLEN 40
#endif
/*
** Lua will use at most ~(2^LUAI_HASHLIMIT) bytes from a string to
** compute its hash