aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-01-14 11:48:28 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-01-14 11:48:28 -0200
commit44ace0aefd91d86553ff99633a3fe5cd5f9564c0 (patch)
treece19c1c78ed2ac4692426dad4b41c3dc0f68088b
parent5981161360e054b8e7e6e670f6ec8d0a2add7f3b (diff)
downloadlua-44ace0aefd91d86553ff99633a3fe5cd5f9564c0.tar.gz
lua-44ace0aefd91d86553ff99633a3fe5cd5f9564c0.tar.bz2
lua-44ace0aefd91d86553ff99633a3fe5cd5f9564c0.zip
we don't need a type "Word".
-rw-r--r--lobject.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lobject.h b/lobject.h
index 6fc61916..bc9be0ba 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.13 1997/12/26 18:38:16 roberto Exp roberto $ 2** $Id: lobject.h,v 1.15 1998/01/13 13:27:25 roberto Exp $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -25,10 +25,7 @@
25#define Byte lua_Byte /* some systems have Byte as a predefined type */ 25#define Byte lua_Byte /* some systems have Byte as a predefined type */
26typedef unsigned char Byte; /* unsigned 8 bits */ 26typedef unsigned char Byte; /* unsigned 8 bits */
27 27
28#define Word lua_Word /* some systems have Word as a predefined type */ 28#define MAX_WORD (65534U) /* maximum value of a word (-2 for safety) */
29typedef unsigned short Word; /* unsigned 16 bits */
30
31#define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */
32#define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */ 29#define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */
33 30
34typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ 31typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */