瀏覽代碼

only parser uses MAX_WORD

Roberto Ierusalimschy 26 年之前
父節點
當前提交
ae29ab9858
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      lobject.h

+ 1 - 8
lobject.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lobject.h,v 1.24 1998/12/27 20:25:20 roberto Exp roberto $
+** $Id: lobject.h,v 1.25 1999/01/04 13:37:07 roberto Exp roberto $
 ** Type definitions for Lua objects
 ** Type definitions for Lua objects
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -41,13 +41,6 @@ typedef unsigned char  Byte;  /* unsigned 8 bits */
 
 
 #define MAX_INT   (INT_MAX-2)  /* maximum value of an int (-2 for safety) */
 #define MAX_INT   (INT_MAX-2)  /* maximum value of an int (-2 for safety) */
 
 
-/* maximum value of a word of 2 bytes (-2 for safety); must fit in an "int" */
-#if MAX_INT < 65534
-#define MAX_WORD	MAX_INT
-#else
-#define MAX_WORD	65534
-#endif
-
 typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */
 typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */