diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-03 11:53:48 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-03 11:53:48 -0200 |
commit | ae29ab9858514eb264be590163c698d5172bbaa4 (patch) | |
tree | a7b095ae23d67ada6beafa90cbbdf25586468401 | |
parent | 27407fc1f5fc4e0d97dadeda5939efa62fe7e380 (diff) | |
download | lua-ae29ab9858514eb264be590163c698d5172bbaa4.tar.gz lua-ae29ab9858514eb264be590163c698d5172bbaa4.tar.bz2 lua-ae29ab9858514eb264be590163c698d5172bbaa4.zip |
only parser uses MAX_WORD
-rw-r--r-- | lobject.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.24 1998/12/27 20:25:20 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.25 1999/01/04 13:37:07 roberto Exp roberto $ |
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 | */ |
@@ -41,13 +41,6 @@ typedef unsigned char Byte; /* unsigned 8 bits */ | |||
41 | 41 | ||
42 | #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ | 42 | #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ |
43 | 43 | ||
44 | /* maximum value of a word of 2 bytes (-2 for safety); must fit in an "int" */ | ||
45 | #if MAX_INT < 65534 | ||
46 | #define MAX_WORD MAX_INT | ||
47 | #else | ||
48 | #define MAX_WORD 65534 | ||
49 | #endif | ||
50 | |||
51 | typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ | 44 | typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ |
52 | 45 | ||
53 | 46 | ||