aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-20 19:31:01 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-20 19:31:01 -0200
commit89d823f16bd8e60c59ec6358ce8fe1e7db4483dc (patch)
treee914943ad55b7f9d8218353220dcd8d1713c9110
parent8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490 (diff)
downloadlua-89d823f16bd8e60c59ec6358ce8fe1e7db4483dc.tar.gz
lua-89d823f16bd8e60c59ec6358ce8fe1e7db4483dc.tar.bz2
lua-89d823f16bd8e60c59ec6358ce8fe1e7db4483dc.zip
implementation dependent types
-rw-r--r--types.h25
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
13typedef int Bool; /* boolean values */
14
15typedef unsigned char Byte; /* unsigned 8 bits */
16
17typedef unsigned short Word; /* unsigned 16 bits */
18
19#define MAX_WORD 0xFFFD /* maximum value of a word (FFFF-2 for safety) */
20
21typedef signed long Long; /* 32 bits */
22
23typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */
24
25#endif