ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/sysdeps.h
(Generate patch)

Comparing SheepShaver/src/Unix/sysdeps.h (file contents):
Revision 1.2 by cebix, 2002-02-21T15:12:12Z vs.
Revision 1.4 by gbeauche, 2003-05-22T22:12:05Z

# Line 59 | Line 59
59   # endif
60   #endif
61  
62 + // Mac and host address space are the same
63 + #define REAL_ADDRESSING 1
64 +
65   // Are we using a PPC emulator or the real thing?
66   #ifdef __powerpc__
67   #define EMULATED_PPC 0
# Line 92 | Line 95 | typedef long int32;
95   #if SIZEOF_LONG == 8
96   typedef unsigned long uint64;
97   typedef long int64;
98 + #define VAL64(a) (a ## l)
99 + #define UVAL64(a) (a ## ul)
100   #elif SIZEOF_LONG_LONG == 8
101   typedef unsigned long long uint64;
102   typedef long long int64;
103 + #define VAL64(a) (a ## LL)
104 + #define UVAL64(a) (a ## uLL)
105   #else
106   #error "No 8 byte type, you lose."
107   #endif
108 + #if SIZEOF_VOID_P == 4
109 + typedef uint32 uintptr;
110 + typedef int32 intptr;
111 + #elif SIZEOF_VOID_P == 8
112 + typedef uint64 uintptr;
113 + typedef int64 intptr;
114 + #else
115 + #error "Unsupported size of pointer"
116 + #endif
117  
118   // Time data type for Time Manager emulation
119   #ifdef HAVE_CLOCK_GETTIME
# Line 127 | Line 143 | typedef struct rgb_color {
143   #define CallMacOS6(type, tvect, arg1, arg2, arg3, arg4, arg5, arg6) call_macos6((uint32)tvect, (uint32)arg1, (uint32)arg2, (uint32)arg3, (uint32)arg4, (uint32)arg5, (uint32)arg6)
144   #define CallMacOS7(type, tvect, arg1, arg2, arg3, arg4, arg5, arg6, arg7) call_macos7((uint32)tvect, (uint32)arg1, (uint32)arg2, (uint32)arg3, (uint32)arg4, (uint32)arg5, (uint32)arg6, (uint32)arg7)
145  
146 < extern "C" uint32 call_macos(uint32 tvect);
147 < extern "C" uint32 call_macos1(uint32 tvect, uint32 arg1);
148 < extern "C" uint32 call_macos2(uint32 tvect, uint32 arg1, uint32 arg2);
149 < extern "C" uint32 call_macos3(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3);
150 < extern "C" uint32 call_macos4(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4);
151 < extern "C" uint32 call_macos5(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4, uint32 arg5);
152 < extern "C" uint32 call_macos6(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4, uint32 arg5, uint32 arg6);
153 < extern "C" uint32 call_macos7(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4, uint32 arg5, uint32 arg6, uint32 arg7);
146 > #ifdef __cplusplus
147 > extern "C" {
148 > #endif
149 > extern uint32 call_macos(uint32 tvect);
150 > extern uint32 call_macos1(uint32 tvect, uint32 arg1);
151 > extern uint32 call_macos2(uint32 tvect, uint32 arg1, uint32 arg2);
152 > extern uint32 call_macos3(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3);
153 > extern uint32 call_macos4(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4);
154 > extern uint32 call_macos5(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4, uint32 arg5);
155 > extern uint32 call_macos6(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4, uint32 arg5, uint32 arg6);
156 > extern uint32 call_macos7(uint32 tvect, uint32 arg1, uint32 arg2, uint32 arg3, uint32 arg4, uint32 arg5, uint32 arg6, uint32 arg7);
157 > #ifdef __cplusplus
158 > }
159 > #endif
160  
161   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines