lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 89d823f16bd8e60c59ec6358ce8fe1e7db4483dc
parent 8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 20 Dec 1994 19:30:42 -0200

implementation dependent types

Diffstat:
Atypes.h | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/types.h b/types.h @@ -0,0 +1,25 @@ +/* +** TeCGraf - PUC-Rio +** $Id: $ +*/ + +#ifndef types_h +#define types_h + +#ifndef real +#define real float +#endif + +typedef int Bool; /* boolean values */ + +typedef unsigned char Byte; /* unsigned 8 bits */ + +typedef unsigned short Word; /* unsigned 16 bits */ + +#define MAX_WORD 0xFFFD /* maximum value of a word (FFFF-2 for safety) */ + +typedef signed long Long; /* 32 bits */ + +typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ + +#endif