mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
implementation dependent types
This commit is contained in:
parent
8cb8594a3b
commit
89d823f16b
1 changed files with 25 additions and 0 deletions
25
types.h
Normal file
25
types.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue