summaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index ada86a9b..ea2298f7 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.2 2000/03/24 19:49:23 roberto Exp roberto $ 2** $Id: llimits.h,v 1.3 2000/03/27 20:08:33 roberto Exp roberto $
3** Limits, basic types, and some other "instalation-dependent" definitions 3** Limits, basic types, and some other "instalation-dependent" definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -43,6 +43,13 @@ typedef LUA_NUM_TYPE Number;
43#define MINPOWER2 4 /* minimum size for "growing" vectors */ 43#define MINPOWER2 4 /* minimum size for "growing" vectors */
44 44
45 45
46
47#ifndef DEFAULT_STACK_SIZE
48#define DEFAULT_STACK_SIZE 1024
49#endif
50
51
52
46/* 53/*
47** type for virtual-machine instructions 54** type for virtual-machine instructions
48** must be an unsigned with 4 bytes (see details in lopcodes.h) 55** must be an unsigned with 4 bytes (see details in lopcodes.h)
@@ -151,7 +158,11 @@ typedef unsigned long Instruction;
151 158
152 159
153/* number of list items to accumulate before a SETLIST instruction */ 160/* number of list items to accumulate before a SETLIST instruction */
161#define LFIELDS_PER_FLUSH 64
162#if LFIELDS_PER_FLUSH>(MAXSTACK/4)
163#undef LFIELDS_PER_FLUSH
154#define LFIELDS_PER_FLUSH (MAXSTACK/4) 164#define LFIELDS_PER_FLUSH (MAXSTACK/4)
165#endif
155 166
156/* number of record items to accumulate before a SETMAP instruction */ 167/* number of record items to accumulate before a SETMAP instruction */
157/* (each item counts 2 elements on the stack: an index and a value) */ 168/* (each item counts 2 elements on the stack: an index and a value) */