diff options
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.47 2002/10/22 17:18:28 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.48 2002/11/22 16:35:20 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 | */ |
@@ -119,12 +119,22 @@ typedef LUA_UACNUMBER l_uacNumber; | |||
119 | typedef unsigned long Instruction; | 119 | typedef unsigned long Instruction; |
120 | 120 | ||
121 | 121 | ||
122 | /* maximum depth for calls */ | 122 | /* maximum depth for calls (unsigned short) */ |
123 | #ifndef LUA_MAXCALLS | 123 | #ifndef LUA_MAXCALLS |
124 | #define LUA_MAXCALLS 4096 | 124 | #define LUA_MAXCALLS 4096 |
125 | #endif | 125 | #endif |
126 | 126 | ||
127 | 127 | ||
128 | /* | ||
129 | ** maximum depth for C calls (unsigned short): Not too big, or may | ||
130 | ** overflow the C stack... | ||
131 | */ | ||
132 | |||
133 | #ifndef LUA_MAXCCALLS | ||
134 | #define LUA_MAXCCALLS 200 | ||
135 | #endif | ||
136 | |||
137 | |||
128 | /* maximum size for the C stack */ | 138 | /* maximum size for the C stack */ |
129 | #ifndef LUA_MAXCSTACK | 139 | #ifndef LUA_MAXCSTACK |
130 | #define LUA_MAXCSTACK 2048 | 140 | #define LUA_MAXCSTACK 2048 |
@@ -165,7 +175,10 @@ typedef unsigned long Instruction; | |||
165 | #endif | 175 | #endif |
166 | 176 | ||
167 | 177 | ||
168 | /* maximum number of syntactical nested non-terminals */ | 178 | /* |
179 | ** maximum number of syntactical nested non-terminals: Not too big, | ||
180 | ** or may overflow the C stack... | ||
181 | */ | ||
169 | #ifndef LUA_MAXPARSERLEVEL | 182 | #ifndef LUA_MAXPARSERLEVEL |
170 | #define LUA_MAXPARSERLEVEL 200 | 183 | #define LUA_MAXPARSERLEVEL 200 |
171 | #endif | 184 | #endif |