diff options
| -rw-r--r-- | luaconf.h | 8 |
1 files changed, 2 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.92 2007/09/14 13:26:03 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.93 2007/11/26 16:56:11 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -389,15 +389,11 @@ | |||
| 389 | */ | 389 | */ |
| 390 | #if LUAI_BITSINT >= 32 | 390 | #if LUAI_BITSINT >= 32 |
| 391 | #define LUAI_UINT32 unsigned int | 391 | #define LUAI_UINT32 unsigned int |
| 392 | #define LUAI_INT32 int | ||
| 393 | #define LUAI_MAXINT32 INT_MAX | ||
| 394 | #define LUAI_UMEM size_t | 392 | #define LUAI_UMEM size_t |
| 395 | #define LUAI_MEM ptrdiff_t | 393 | #define LUAI_MEM ptrdiff_t |
| 396 | #else | 394 | #else |
| 397 | /* 16-bit ints */ | 395 | /* 16-bit ints */ |
| 398 | #define LUAI_UINT32 unsigned long | 396 | #define LUAI_UINT32 unsigned long |
| 399 | #define LUAI_INT32 long | ||
| 400 | #define LUAI_MAXINT32 LONG_MAX | ||
| 401 | #define LUAI_UMEM unsigned long | 397 | #define LUAI_UMEM unsigned long |
| 402 | #define LUAI_MEM long | 398 | #define LUAI_MEM long |
| 403 | #endif | 399 | #endif |
| @@ -419,7 +415,7 @@ | |||
| 419 | ** functions. This limit is arbitrary; its only purpose is to stop C | 415 | ** functions. This limit is arbitrary; its only purpose is to stop C |
| 420 | ** functions to consume unlimited stack space. | 416 | ** functions to consume unlimited stack space. |
| 421 | */ | 417 | */ |
| 422 | #define LUAI_MAXCSTACK 2048 | 418 | #define LUAI_MAXCSTACK ((int)((INT_MAX / (4*sizeof(LUA_NUMBER))) & 0xffff)) |
| 423 | 419 | ||
| 424 | 420 | ||
| 425 | 421 | ||
