aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-16 13:41:03 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-16 13:41:03 -0200
commit5b01cb39b5ec36c544152351c35c43149d9bbfec (patch)
tree97032520ff4ca2cd5c6f41c9b0a8a9ddd042e39f /llimits.h
parenta0503305bd95c40c0cbf5e78b345c30721176998 (diff)
downloadlua-5b01cb39b5ec36c544152351c35c43149d9bbfec.tar.gz
lua-5b01cb39b5ec36c544152351c35c43149d9bbfec.tar.bz2
lua-5b01cb39b5ec36c544152351c35c43149d9bbfec.zip
larger MINSTRTABSIZE (standard Lua starts with ~230 strings, after
oppening the standard libraries)
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/llimits.h b/llimits.h
index db9e7741..a751f9f5 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.126 2015/01/13 15:49:11 roberto Exp roberto $ 2** $Id: llimits.h,v 1.127 2015/01/16 13:26:55 roberto Exp roberto $
3** Limits, basic types, and some other 'installation-dependent' definitions 3** Limits, basic types, and some other 'installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -166,9 +166,14 @@ typedef unsigned long Instruction;
166 166
167 167
168 168
169/* minimum size for the string table (must be power of 2) */ 169/*
170** Initial size for the string table (must be power of 2).
171** The Lua core alone registers ~50 strings (reserved words +
172** metaevent keys + a few others). Libraries would typically add
173** a few dozens more.
174*/
170#if !defined(MINSTRTABSIZE) 175#if !defined(MINSTRTABSIZE)
171#define MINSTRTABSIZE 64 /* minimum size for "predefined" strings */ 176#define MINSTRTABSIZE 128
172#endif 177#endif
173 178
174 179