LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not

affect the API and is seldom modified)
This commit is contained in:
Roberto Ierusalimschy
2015-01-16 15:15:52 -02:00
parent 7e2015a46d
commit 438a9fcc78
2 changed files with 12 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.127 2015/01/16 13:26:55 roberto Exp roberto $
** $Id: llimits.h,v 1.128 2015/01/16 15:41:03 roberto Exp roberto $
** Limits, basic types, and some other 'installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -165,6 +165,16 @@ typedef unsigned long Instruction;
/*
** 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
/*
** Initial size for the string table (must be power of 2).