diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-02-06 17:32:43 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-02-06 17:32:43 -0200 |
commit | cda444d7f490b8d3bd5ae19323d09e236d2419d3 (patch) | |
tree | c4749719ea5bd3c3048b66cc0d1ce6a38a70f304 | |
parent | dd28b830e9a4104fe78094fc6baf15cf601c1b6b (diff) | |
download | lua-cda444d7f490b8d3bd5ae19323d09e236d2419d3.tar.gz lua-cda444d7f490b8d3bd5ae19323d09e236d2419d3.tar.bz2 lua-cda444d7f490b8d3bd5ae19323d09e236d2419d3.zip |
type names changed to avoid clashes
-rw-r--r-- | types.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | ** TeCGraf - PUC-Rio | 2 | ** TeCGraf - PUC-Rio |
3 | ** $Id: types.h,v 1.1 1994/12/20 21:31:01 roberto Exp celes $ | 3 | ** $Id: types.h,v 1.2 1994/12/27 20:41:47 celes Exp roberto $ |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef types_h | 6 | #ifndef types_h |
@@ -14,13 +14,16 @@ | |||
14 | 14 | ||
15 | typedef int Bool; /* boolean values */ | 15 | typedef int Bool; /* boolean values */ |
16 | 16 | ||
17 | #define Byte lua_Byte /* some systems have Byte as a predefined type */ | ||
17 | typedef unsigned char Byte; /* unsigned 8 bits */ | 18 | typedef unsigned char Byte; /* unsigned 8 bits */ |
18 | 19 | ||
20 | #define Word lua_Word /* some systems have Word as a predefined type */ | ||
19 | typedef unsigned short Word; /* unsigned 16 bits */ | 21 | typedef unsigned short Word; /* unsigned 16 bits */ |
20 | 22 | ||
21 | #define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */ | 23 | #define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */ |
22 | #define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */ | 24 | #define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */ |
23 | 25 | ||
26 | #define Long lua_Long /* some systems have Long as a predefined type */ | ||
24 | typedef signed long Long; /* 32 bits */ | 27 | typedef signed long Long; /* 32 bits */ |
25 | 28 | ||
26 | typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ | 29 | typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ |