Mercurial > projects > dwt-mac
comparison dwt/internal/c/carboncore/MacTypes.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | 2952d5604c0a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: 2008 | |
5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) | |
6 * | |
7 */ | |
8 module dwt.internal.c.carboncore.MacTypes; | |
9 | |
10 /******************************************************************************** | |
11 | |
12 Base integer types for all target OS's and CPU's | |
13 | |
14 UInt8 8-bit unsigned integer | |
15 SInt8 8-bit signed integer | |
16 UInt16 16-bit uinteger | |
17 SInt16 16-bit signed integer | |
18 UInt32 32-bit uinteger | |
19 SInt32 32-bit signed integer | |
20 UInt64 64-bit uinteger | |
21 SInt64 64-bit integer | |
22 | |
23 *********************************************************************************/ | |
24 alias ubyte UInt8; | |
25 alias byte SInt8; | |
26 alias ushort UInt16; | |
27 alias short SInt16; | |
28 alias uint UInt32; | |
29 alias int SInt32; | |
30 alias ulong UInt64; | |
31 alias long SInt64; | |
32 | |
33 alias byte uint8_t; | |
34 | |
35 /******************************************************************************** | |
36 | |
37 Higher level basic types | |
38 | |
39 OSErr 16-bit result error code | |
40 OSStatus 32-bit result error code | |
41 LogicalAddress Address in the clients virtual address space | |
42 ConstLogicalAddress Address in the clients virtual address space that will only be read | |
43 PhysicalAddress Real address as used on the hardware bus | |
44 BytePtr Pointer to an array of bytes | |
45 ByteCount The size of an array of bytes | |
46 ByteOffset An offset into an array of bytes | |
47 ItemCount 32-bit iteration count | |
48 OptionBits Standard 32-bit set of bit flags | |
49 PBVersion ? | |
50 Duration 32-bit millisecond timer for drivers | |
51 AbsoluteTime 64-bit clock | |
52 ScriptCode A particular set of written characters (e.g. Roman vs Cyrillic) and their encoding | |
53 LangCode A particular language (e.g. English), as represented using a particular ScriptCode | |
54 RegionCode Designates a language as used in a particular region (e.g. British vs American | |
55 English) together with other region-dependent characteristics (e.g. date format) | |
56 FourCharCode A 32-bit value made by packing four 1 byte characters together | |
57 OSType A FourCharCode used in the OS and file system (e.g. creator) | |
58 ResType A FourCharCode used to tag resources (e.g. 'DLOG') | |
59 | |
60 *********************************************************************************/ | |
61 alias SInt16 OSErr; | |
62 alias SInt32 OSStatus; | |
63 alias void* LogicalAddress; | |
64 alias /*const*/void* ConstLogicalAddress; | |
65 alias void* PhysicalAddress; | |
66 alias UInt8* BytePtr; | |
67 alias uint ByteCount; | |
68 alias uint ByteOffset; | |
69 alias SInt32 Duration; | |
70 alias UnsignedWide AbsoluteTime; | |
71 alias UInt32 OptionBits; | |
72 alias uint ItemCount; | |
73 alias UInt32 PBVersion; | |
74 alias SInt16 ScriptCode; | |
75 alias SInt16 LangCode; | |
76 alias SInt16 RegionCode; | |
77 alias UInt32 FourCharCode; | |
78 alias FourCharCode OSType; | |
79 alias FourCharCode ResType; | |
80 alias OSType* OSTypePtr; | |
81 alias ResType* ResTypePtr; | |
82 | |
83 struct UnsignedWide | |
84 { | |
85 UInt32 hi; | |
86 UInt32 lo; | |
87 } |