22 #ifndef __CONDITIONALMACROS__
47 #if PRAGMA_STRUCT_ALIGN
48 #pragma options align = mac68k
49 #elif PRAGMA_STRUCT_PACKPUSH
51 #elif PRAGMA_STRUCT_PACK
58 kTMTaskActive = (1L << 15)
121 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
122 #pragma parameter InsTime(__A0)
152 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
153 #pragma parameter InsXTime(__A0)
204 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
205 #pragma parameter PrimeTime(__A0, __D0)
240 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
241 #pragma parameter RmvTime(__A0)
257 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
258 #pragma parameter __D0 InstallTimeTask(__A0)
271 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
272 #pragma parameter __D0 InstallXTimeTask(__A0)
285 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
286 #pragma parameter __D0 PrimeTimeTask(__A0, __D0)
299 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
300 #pragma parameter __D0 RemoveTimeTask(__A0)
326 #if !OPAQUE_UPP_TYPES
329 uppTimerProcInfo = 0x0000B802
332 inline TimerUPP
NewTimerUPP(TimerProcPtr userRoutine)
335 (ProcPtr)(userRoutine), uppTimerProcInfo, GetCurrentArchitecture());
338 #define NewTimerUPP(userRoutine) \
339 (TimerUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppTimerProcInfo, \
340 GetCurrentArchitecture())
354 #if !OPAQUE_UPP_TYPES
361 #define DisposeTimerUPP(userUPP) DisposeRoutineDescriptor(userUPP)
373 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
374 #pragma parameter InvokeTimerUPP(__A1, __A0)
378 #if !OPAQUE_UPP_TYPES && \
379 (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
383 CALL_ONE_PARAMETER_UPP(userUPP, uppTimerProcInfo, tmTaskPtr);
386 #define InvokeTimerUPP(tmTaskPtr, userUPP) \
387 CALL_ONE_PARAMETER_UPP((userUPP), uppTimerProcInfo, (tmTaskPtr))
391 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
393 #define NewTimerProc(userRoutine) NewTimerUPP(userRoutine)
394 #define CallTimerProc(userRoutine, tmTaskPtr) \
395 InvokeTimerUPP(tmTaskPtr, userRoutine)
398 #if PRAGMA_STRUCT_ALIGN
399 #pragma options align = reset
400 #elif PRAGMA_STRUCT_PACKPUSH
402 #elif PRAGMA_STRUCT_PACK
406 #ifdef PRAGMA_IMPORT_OFF
Set up for compiler independent conditionals.
Basic Macintosh data types.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
typedef CALLBACK_API_REGISTER68K(void, SIInterruptProcPtr,(SPBPtr inParamPtr, Ptr dataBuffer, short peakAmplitude, long sampleSize))
typedef REGISTER_UPP_TYPE(HighHookProcPtr) HighHookUPP
void InsTime(QElemPtr tmTaskPtr)
Install timer task.
void RmvTime(QElemPtr tmTaskPtr)
Remove task from Time Manager queue.
void InsXTime(QElemPtr tmTaskPtr)
Install extended Time Manager task.
OSErr InstallTimeTask(QElemPtr tmTaskPtr)
OSErr InstallXTimeTask(QElemPtr tmTaskPtr)
TimerUPP NewTimerUPP(TimerProcPtr userRoutine)
OSErr RemoveTimeTask(QElemPtr tmTaskPtr)
OSErr PrimeTimeTask(QElemPtr tmTaskPtr, long count)
void InvokeTimerUPP(TMTaskPtr tmTaskPtr, TimerUPP userUPP)
void PrimeTime(QElemPtr tmTaskPtr, long count)
Set interval for timer and start it ticking.
void DisposeTimerUPP(TimerUPP userUPP)
void Microseconds(UnsignedWide *microTickCount)
Definition: OSUtils.h:131
Definition: MacTypes.h:110