1994-12-21 00:31:01 +03:00
|
|
|
/*
|
|
|
|
** TeCGraf - PUC-Rio
|
1995-02-06 22:32:43 +03:00
|
|
|
** $Id: types.h,v 1.2 1994/12/27 20:41:47 celes Exp roberto $
|
1994-12-21 00:31:01 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef types_h
|
|
|
|
#define types_h
|
|
|
|
|
1994-12-27 23:41:47 +03:00
|
|
|
#include <limits.h>
|
|
|
|
|
1994-12-21 00:31:01 +03:00
|
|
|
#ifndef real
|
|
|
|
#define real float
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef int Bool; /* boolean values */
|
|
|
|
|
1995-02-06 22:32:43 +03:00
|
|
|
#define Byte lua_Byte /* some systems have Byte as a predefined type */
|
1994-12-21 00:31:01 +03:00
|
|
|
typedef unsigned char Byte; /* unsigned 8 bits */
|
|
|
|
|
1995-02-06 22:32:43 +03:00
|
|
|
#define Word lua_Word /* some systems have Word as a predefined type */
|
1994-12-21 00:31:01 +03:00
|
|
|
typedef unsigned short Word; /* unsigned 16 bits */
|
|
|
|
|
1994-12-27 23:41:47 +03:00
|
|
|
#define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */
|
|
|
|
#define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */
|
1994-12-21 00:31:01 +03:00
|
|
|
|
1995-02-06 22:32:43 +03:00
|
|
|
#define Long lua_Long /* some systems have Long as a predefined type */
|
1994-12-21 00:31:01 +03:00
|
|
|
typedef signed long Long; /* 32 bits */
|
|
|
|
|
|
|
|
typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */
|
|
|
|
|
|
|
|
#endif
|