diff options
| -rw-r--r-- | llimits.h | 12 |
1 files changed, 5 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.52 2003/02/20 19:33:23 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.53 2003/04/28 19:26:16 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 | */ |
| @@ -57,8 +57,6 @@ typedef LUA_UINT32 lu_int32; | |||
| 57 | */ | 57 | */ |
| 58 | typedef lu_int32 lu_mem; | 58 | typedef lu_int32 lu_mem; |
| 59 | 59 | ||
| 60 | #define MAX_LUMEM ULONG_MAX | ||
| 61 | |||
| 62 | 60 | ||
| 63 | /* chars used as small naturals (so that `char' is reserved for characters) */ | 61 | /* chars used as small naturals (so that `char' is reserved for characters) */ |
| 64 | typedef unsigned char lu_byte; | 62 | typedef unsigned char lu_byte; |
| @@ -138,7 +136,7 @@ typedef lu_int32 Instruction; | |||
| 138 | #endif | 136 | #endif |
| 139 | 137 | ||
| 140 | 138 | ||
| 141 | /* maximum size for the C stack */ | 139 | /* maximum size for the virtual stack of a C function */ |
| 142 | #ifndef LUA_MAXCSTACK | 140 | #ifndef LUA_MAXCSTACK |
| 143 | #define LUA_MAXCSTACK 2048 | 141 | #define LUA_MAXCSTACK 2048 |
| 144 | #endif | 142 | #endif |
| @@ -150,19 +148,19 @@ typedef lu_int32 Instruction; | |||
| 150 | 148 | ||
| 151 | /* maximum number of variables declared in a function */ | 149 | /* maximum number of variables declared in a function */ |
| 152 | #ifndef MAXVARS | 150 | #ifndef MAXVARS |
| 153 | #define MAXVARS 200 /* arbitrary limit (<MAXSTACK) */ | 151 | #define MAXVARS 200 /* <MAXSTACK */ |
| 154 | #endif | 152 | #endif |
| 155 | 153 | ||
| 156 | 154 | ||
| 157 | /* maximum number of upvalues per function */ | 155 | /* maximum number of upvalues per function */ |
| 158 | #ifndef MAXUPVALUES | 156 | #ifndef MAXUPVALUES |
| 159 | #define MAXUPVALUES 32 | 157 | #define MAXUPVALUES 32 /* <MAXSTACK */ |
| 160 | #endif | 158 | #endif |
| 161 | 159 | ||
| 162 | 160 | ||
| 163 | /* maximum number of parameters in a function */ | 161 | /* maximum number of parameters in a function */ |
| 164 | #ifndef MAXPARAMS | 162 | #ifndef MAXPARAMS |
| 165 | #define MAXPARAMS 100 /* arbitrary limit (<MAXLOCALS) */ | 163 | #define MAXPARAMS 100 /* <MAXLOCALS */ |
| 166 | #endif | 164 | #endif |
| 167 | 165 | ||
| 168 | 166 | ||
