From 438a9fcc782754ce265412769519670475898f5c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 16 Jan 2015 15:15:52 -0200 Subject: LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not affect the API and is seldom modified) --- llimits.h | 12 +++++++++++- luaconf.h | 11 +---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/llimits.h b/llimits.h index a751f9f5..921d058e 100644 --- a/llimits.h +++ b/llimits.h @@ -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). diff --git a/luaconf.h b/luaconf.h index c9be3dea..fe3ef9c0 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.239 2015/01/13 17:24:22 roberto Exp roberto $ +** $Id: luaconf.h,v 1.240 2015/01/13 19:50:30 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -688,15 +688,6 @@ #define LUA_IDSIZE 60 -/* -@@ LUAI_MAXSHORTLEN is the 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.) -*/ -#define LUAI_MAXSHORTLEN 40 - - /* @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. ** CHANGE it if it uses too much C-stack space. (For long double, -- cgit v1.2.3-55-g6feb