diff options
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.55 2003/05/14 21:01:53 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.56 2003/07/29 19:26:34 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 | */ |
@@ -50,12 +50,32 @@ typedef LUA_UINT32 lu_int32; | |||
50 | 50 | ||
51 | 51 | ||
52 | /* | 52 | /* |
53 | ** a signed integer with at least 32 bits | ||
54 | */ | ||
55 | #ifndef LUA_INT32 | ||
56 | #define LUA_INT32 long | ||
57 | #define LUA_MAXINT32 LONG_MAX | ||
58 | #endif | ||
59 | |||
60 | typedef LUA_INT32 l_int32; | ||
61 | |||
62 | |||
63 | /* | ||
53 | ** an unsigned integer big enough to count the total memory used by Lua; | 64 | ** an unsigned integer big enough to count the total memory used by Lua; |
54 | ** it should be at least as large as `size_t' | 65 | ** it should be at least as large as `size_t' |
55 | */ | 66 | */ |
56 | typedef lu_int32 lu_mem; | 67 | typedef lu_int32 lu_mem; |
57 | 68 | ||
58 | 69 | ||
70 | /* | ||
71 | ** a signed integer big enough to count the total memory used by Lua; | ||
72 | ** it should be at least as large as `size_t' | ||
73 | */ | ||
74 | typedef l_int32 l_mem; | ||
75 | #define MAXLMEM LUA_MAXINT32 | ||
76 | |||
77 | |||
78 | |||
59 | /* chars used as small naturals (so that `char' is reserved for characters) */ | 79 | /* chars used as small naturals (so that `char' is reserved for characters) */ |
60 | typedef unsigned char lu_byte; | 80 | typedef unsigned char lu_byte; |
61 | 81 | ||