From 36e1390631a4b89f0a8a3111978780de0d53466c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 31 Mar 2000 13:28:45 -0300 Subject: details. --- llimits.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'llimits.h') diff --git a/llimits.h b/llimits.h index ada86a9b..ea2298f7 100644 --- a/llimits.h +++ b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.2 2000/03/24 19:49:23 roberto Exp roberto $ +** $Id: llimits.h,v 1.3 2000/03/27 20:08:33 roberto Exp roberto $ ** Limits, basic types, and some other "instalation-dependent" definitions ** See Copyright Notice in lua.h */ @@ -43,6 +43,13 @@ typedef LUA_NUM_TYPE Number; #define MINPOWER2 4 /* minimum size for "growing" vectors */ + +#ifndef DEFAULT_STACK_SIZE +#define DEFAULT_STACK_SIZE 1024 +#endif + + + /* ** type for virtual-machine instructions ** must be an unsigned with 4 bytes (see details in lopcodes.h) @@ -151,7 +158,11 @@ typedef unsigned long Instruction; /* number of list items to accumulate before a SETLIST instruction */ +#define LFIELDS_PER_FLUSH 64 +#if LFIELDS_PER_FLUSH>(MAXSTACK/4) +#undef LFIELDS_PER_FLUSH #define LFIELDS_PER_FLUSH (MAXSTACK/4) +#endif /* number of record items to accumulate before a SETMAP instruction */ /* (each item counts 2 elements on the stack: an index and a value) */ -- cgit v1.2.3-55-g6feb