diff options
author | fishsoupisgood <github@madingley.org> | 2019-05-27 02:41:51 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2019-05-27 02:41:51 +0100 |
commit | 333b605b2afd472b823aeda0adf0e8b1ea9843c0 (patch) | |
tree | bc8f581317897e2e53f278f1716b4471fcdccd4f /datatypes.h | |
download | asl-master.tar.gz asl-master.tar.bz2 asl-master.zip |
Diffstat (limited to 'datatypes.h')
-rw-r--r-- | datatypes.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/datatypes.h b/datatypes.h new file mode 100644 index 0000000..532e581 --- /dev/null +++ b/datatypes.h @@ -0,0 +1,55 @@ +#include "sysdefs.h" + +typedef Card8 Byte; /* Integertypen */ +typedef Integ8 ShortInt; + +#ifdef HAS16 +typedef Card16 Word; +typedef Integ16 Integer; +#endif + +typedef Card32 LongWord; +typedef Integ32 LongInt; + +#ifdef HAS64 +typedef Card64 QuadWord; +typedef Integ64 QuadInt; +#endif + +#ifdef HAS64 +typedef QuadInt LargeInt; +typedef QuadWord LargeWord; +#define LARGEBITS 64 +#else +typedef LongInt LargeInt; +typedef LongWord LargeWord; +#define LARGEBITS 32 +#endif + +typedef signed int sint; +typedef unsigned int usint; + +typedef char Char; + +typedef double Double; +typedef float Single; + +typedef Byte Boolean; + +typedef char String[256]; +typedef char ShortString[65]; + +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef True +#define True 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef False +#define False 0 +#endif + |