diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
| commit | 2f1fa3d427b783490c2f0efb7dfe0090e291692f (patch) | |
| tree | 67ff989c1209544f87ccf9eaee42c0a81411f69e /types.h | |
| parent | 189d64409b5f7e09fb7650e7217d55277b1fccba (diff) | |
| download | lua-2f1fa3d427b783490c2f0efb7dfe0090e291692f.tar.gz lua-2f1fa3d427b783490c2f0efb7dfe0090e291692f.tar.bz2 lua-2f1fa3d427b783490c2f0efb7dfe0090e291692f.zip | |
Type definitions for Lua objects
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/types.h b/types.h deleted file mode 100644 index 3719f41d..00000000 --- a/types.h +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | /* | ||
| 2 | ** TeCGraf - PUC-Rio | ||
| 3 | ** $Id: types.h,v 1.3 1995/02/06 19:32:43 roberto Exp roberto $ | ||
| 4 | */ | ||
| 5 | |||
| 6 | #ifndef types_h | ||
| 7 | #define types_h | ||
| 8 | |||
| 9 | #include <limits.h> | ||
| 10 | |||
| 11 | #ifndef real | ||
| 12 | #define real float | ||
| 13 | #endif | ||
| 14 | |||
| 15 | #define Byte lua_Byte /* some systems have Byte as a predefined type */ | ||
| 16 | typedef unsigned char Byte; /* unsigned 8 bits */ | ||
| 17 | |||
| 18 | #define Word lua_Word /* some systems have Word as a predefined type */ | ||
| 19 | typedef unsigned short Word; /* unsigned 16 bits */ | ||
| 20 | |||
| 21 | #define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */ | ||
| 22 | #define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */ | ||
| 23 | |||
| 24 | #define Long lua_Long /* some systems have Long as a predefined type */ | ||
| 25 | typedef signed long Long; /* 32 bits */ | ||
| 26 | |||
| 27 | typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ | ||
| 28 | |||
| 29 | #endif | ||
