]> Shamusworld >> Repos - ttedit/blob - src/types.h
Move main repo to trunk.
[ttedit] / src / types.h
1 //\r
2 // Basic types for platform independent code\r
3 //\r
4 \r
5 #ifndef __TYPES_H__\r
6 #define __TYPES_H__\r
7 \r
8 // This is only good on certain intel 32-bit platforms...\r
9 // You may need to tweak to suit your specific platform.\r
10 \r
11 typedef unsigned char           uint8;\r
12 typedef signed char                     int8;\r
13 typedef unsigned short          uint16;\r
14 typedef signed short            int16;\r
15 typedef unsigned                        uint32;\r
16 typedef signed                          int32;\r
17 //typedef unsigned long long    uint64;\r
18 //typedef signed long long      int64;\r
19 \r
20 //typedef signed char                   SBYTE;\r
21 //typedef signed short int      SWORD;\r
22 //typedef signed long int               SDWORD;\r
23 \r
24 /*#ifndef _WINDOWS_\r
25 #define NULL    0\r
26 // This is for non-compliant compilers that don't follow proper scoping rules (and suck). ;-)\r
27 #define for if(false);else for\r
28 #endif*/\r
29 #ifndef NULL\r
30 #define NULL    0\r
31 #endif\r
32 \r
33 #endif  // __TYPES_H__\r