diff options
| -rw-r--r-- | types.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/types.h b/types.h new file mode 100644 index 00000000..a9d28132 --- /dev/null +++ b/types.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | ** TeCGraf - PUC-Rio | ||
| 3 | ** $Id: $ | ||
| 4 | */ | ||
| 5 | |||
| 6 | #ifndef types_h | ||
| 7 | #define types_h | ||
| 8 | |||
| 9 | #ifndef real | ||
| 10 | #define real float | ||
| 11 | #endif | ||
| 12 | |||
| 13 | typedef int Bool; /* boolean values */ | ||
| 14 | |||
| 15 | typedef unsigned char Byte; /* unsigned 8 bits */ | ||
| 16 | |||
| 17 | typedef unsigned short Word; /* unsigned 16 bits */ | ||
| 18 | |||
| 19 | #define MAX_WORD 0xFFFD /* maximum value of a word (FFFF-2 for safety) */ | ||
| 20 | |||
| 21 | typedef signed long Long; /* 32 bits */ | ||
| 22 | |||
| 23 | typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */ | ||
| 24 | |||
| 25 | #endif | ||
