aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index 44151c8d..7c634f67 100644
--- a/llimits.h
+++ b/llimits.h
@@ -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
60typedef 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*/
56typedef lu_int32 lu_mem; 67typedef 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*/
74typedef 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) */
60typedef unsigned char lu_byte; 80typedef unsigned char lu_byte;
61 81