static void wxProcessTimer( unsigned long event , void *data ) ;
-pascal void MacTimerProc( TMTask * t )
+static pascal void MacTimerProc( TMTask * t )
{
MacTimerInfo * tm = (MacTimerInfo*) t ;
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
}
-void wxProcessTimer( unsigned long event , void *data )
+static void wxProcessTimer( unsigned long event , void *data )
{
if ( !data )
return ;
}
}
-wxTimer::wxTimer()
+void wxTimer::Init()
{
m_info.m_task.tmAddr = NULL ;
m_info.m_task.tmWakeUp = 0 ;
wxCHECK_MSG( m_info.m_task.tmAddr == NULL , FALSE, wxT("attempting to restart a timer") );
m_milli = milliseconds;
- m_info.m_task.tmAddr = NewTimerProc( MacTimerProc ) ;
- m_info.m_task.tmWakeUp = 0 ;
- m_info.m_task.tmReserved = 0 ;
+#ifdef __UNIX__
+ m_info.m_task.tmAddr = NewTimerUPP( MacTimerProc ) ;
+#else
+ m_info.m_task.tmAddr = NewTimerProc( MacTimerProc ) ;
+#endif
+ m_info.m_task.tmWakeUp = 0 ;
+ m_info.m_task.tmReserved = 0 ;
InsXTime((QElemPtr) &m_info.m_task ) ;
PrimeTime( (QElemPtr) &m_info.m_task , m_milli ) ;
return FALSE;