InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AnsiBasedTypes.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Mouhammad Fakhoury
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __AnsiBasedTypes__
25 #define __AnsiBasedTypes__
26 
27 // Types based on ANSI C built-in types only
28 // ** These types are somewhat (but not totally) machine and compiler neutral **
29 
31 typedef signed char int8;
32 
34 typedef unsigned short uint16;
36 typedef short int16;
37 
38 #if WINDOWS
39 
40  typedef unsigned long uint32;
42  typedef long int32;
43 #else
44  // On Mac64 long goes to 64bits
45  #if __LP64__
46 
47  typedef unsigned int uint32;
49  typedef int int32;
50  #else
51 
52  typedef unsigned long uint32;
54  typedef long int32;
55 #endif
56 #endif
57 
59 typedef unsigned char uchar;
61 typedef uchar uint8;
63 typedef uint16 uchar16;
64 
65 #if WINDOWS
66 
67  typedef __int64 int64;
69  typedef unsigned __int64 uint64;
70 #else
71 
72  typedef long long int64;
74  typedef unsigned long long uint64;
75 #endif
76 
77 // Explicit boolean type declarations.
79 typedef uint8 bool8;
81 typedef int16 bool16;
83 typedef uint32 bool32;
84 
85 // These are typedefs are here for AGM compatibility
87 typedef uint8 Bool8;
89 typedef int16 Bool16;
91 typedef uint32 Bool32;
92 
93 
94 #endif // __AnsiBasedTypes__
95 
96