aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-02-06 17:32:43 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-02-06 17:32:43 -0200
commitcda444d7f490b8d3bd5ae19323d09e236d2419d3 (patch)
treec4749719ea5bd3c3048b66cc0d1ce6a38a70f304
parentdd28b830e9a4104fe78094fc6baf15cf601c1b6b (diff)
downloadlua-cda444d7f490b8d3bd5ae19323d09e236d2419d3.tar.gz
lua-cda444d7f490b8d3bd5ae19323d09e236d2419d3.tar.bz2
lua-cda444d7f490b8d3bd5ae19323d09e236d2419d3.zip
type names changed to avoid clashes
-rw-r--r--types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/types.h b/types.h
index 919929c9..2d6cfa36 100644
--- a/types.h
+++ b/types.h
@@ -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
15typedef int Bool; /* boolean values */ 15typedef int Bool; /* boolean values */
16 16
17#define Byte lua_Byte /* some systems have Byte as a predefined type */
17typedef unsigned char Byte; /* unsigned 8 bits */ 18typedef unsigned char Byte; /* unsigned 8 bits */
18 19
20#define Word lua_Word /* some systems have Word as a predefined type */
19typedef unsigned short Word; /* unsigned 16 bits */ 21typedef 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 */
24typedef signed long Long; /* 32 bits */ 27typedef signed long Long; /* 32 bits */
25 28
26typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ 29typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */