diff --git a/ChangeLog b/ChangeLog index 5af14e9..c620b1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2003-02-26 David Ayers + + * EOControl/EODebug.h: Include missing header for non-*-gnu-*. + * EOAccess/EOAdaptor + ([EOAdaptor _performAdministativeStatementsForSelect: + connectionDictionary:administrativeConnectionDictionary]): + Add cast to silence warning. + * EOControl/EOCheapArray.m ([EOCheapArray autorelease]): + Replace objc_thread_id with GSCurrentThread. + ([EOCheapArray release]): Ditto. + ([EOCheapArray retainCount]): Ditto. + ([EOCheapArray retain]): Ditto. + ([EOCheapArray dealloc]): Ditto. + ([EOCheapArray shallowCopy]): Ditto. + * EOControl/EOFault.m: Include missing header. + ([EOFault dealloc]): Replace objc_thread_id with GSCurrentThread. + 2003-02-26 Matt Rice * EOAdaptors/Postgres95/Postgres95Channel.m: Added missing diff --git a/EOAccess/EOAdaptor.m b/EOAccess/EOAdaptor.m index 794ade1..e53b8f5 100644 --- a/EOAccess/EOAdaptor.m +++ b/EOAccess/EOAdaptor.m @@ -365,9 +365,9 @@ NSString *EOAdministrativeConnectionDictionaryKey NSArray *stmts; int i; - stmts = [[self expressionClass] performSelector: sel - withObject: connDict - withObject: admConnDict]; + stmts = [(id)[self expressionClass] performSelector: sel + withObject: connDict + withObject: admConnDict]; /*TODO: check if we need a model. */ admAdaptor = [EOAdaptor adaptorWithName: [self name]]; diff --git a/EOControl/EOCheapArray.m b/EOControl/EOCheapArray.m index 94afbce..b6f6fc4 100644 --- a/EOControl/EOCheapArray.m +++ b/EOControl/EOCheapArray.m @@ -148,8 +148,8 @@ RCS_ID("$Id$") - (id) autorelease { #ifdef DEBUG - NSDebugFLog(@"autorelease EOCheapCopyArray %p. ThreadID=%p [super retainCount]=%d", - (void*)self,(void*)objc_thread_id(),[super retainCount]); + NSDebugFLog(@"autorelease EOCheapCopyArray %p. %@ [super retainCount]=%d", + (void*)self,GSCurrentThread(),[super retainCount]); #endif return [super autorelease]; } @@ -157,8 +157,8 @@ RCS_ID("$Id$") - (void) release { #ifdef DEBUG - NSDebugFLog(@"Release EOCheapCopyArray %p. ThreadID=%p [super retainCount]=%d", - (void*)self,(void*)objc_thread_id(),[super retainCount]); + NSDebugFLog(@"Release EOCheapCopyArray %p. %@ [super retainCount]=%d", + (void*)self,GSCurrentThread(),[super retainCount]); #endif [super release]; } @@ -166,8 +166,8 @@ RCS_ID("$Id$") - (unsigned int) retainCount { #ifdef DEBUG - NSDebugFLog(@"retainCount EOCheapCopyArray %p. ThreadID=%p", - (void*)self,(void*)objc_thread_id()); + NSDebugFLog(@"retainCount EOCheapCopyArray %p. %@", + (void*)self,GSCurrentThread()); #endif return [super retainCount]; @@ -176,8 +176,8 @@ RCS_ID("$Id$") - (id) retain { #ifdef DEBUG - NSDebugFLog(@"retain EOCheapCopyArray %p. ThreadID=%p, [super retainCount]=%d", - (void*)self,(void*)objc_thread_id(),[super retainCount]); + NSDebugFLog(@"retain EOCheapCopyArray %p. %@, [super retainCount]=%d", + (void*)self,GSCurrentThread(),[super retainCount]); #endif return [super retain]; } @@ -276,16 +276,16 @@ RCS_ID("$Id$") NSDeallocateObject(self); #ifdef DEBUG - NSDebugFLog(@"Stop Dealloc EOCheapCopyMutableArray %p. ThreadID=%p", - (void*)self,(void*)objc_thread_id()); + NSDebugFLog(@"Stop Dealloc EOCheapCopyMutableArray %p. %@", + (void*)self,GSCurrentThread()); #endif } - (id) shallowCopy { #ifdef DEBUG - NSDebugFLog(@"Start shallowCopy EOCheapCopyMutableArray %p. ThreadID=%p immutableCopy=%p", - (void*)self,(void*)objc_thread_id(),_immutableCopy); + NSDebugFLog(@"Start shallowCopy EOCheapCopyMutableArray %p. %@ immutableCopy=%p", + (void*)self,GSCurrentThread(),_immutableCopy); #endif //OK if (!_immutableCopy) @@ -299,8 +299,8 @@ RCS_ID("$Id$") RETAIN(_immutableCopy); // Because copy return a not autoreleased object. Retain for request caller #ifdef DEBUG - NSDebugFLog(@"Stop shallowCopy EOCheapCopyMutableArray %p. ThreadID=%p immutableCopy=%p", - (void*)self,(void*)objc_thread_id(),_immutableCopy); + NSDebugFLog(@"Stop shallowCopy EOCheapCopyMutableArray %p. %@ immutableCopy=%p", + (void*)self,GSCurrentThread(),_immutableCopy); #endif return _immutableCopy; } diff --git a/EOControl/EODebug.h b/EOControl/EODebug.h index fbe003f..f22d92a 100644 --- a/EOControl/EODebug.h +++ b/EOControl/EODebug.h @@ -37,6 +37,10 @@ #include #endif +#ifndef GNUSTEP +#include +#endif + #include diff --git a/EOControl/EOFault.m b/EOControl/EOFault.m index c3df99e..fea0ad9 100644 --- a/EOControl/EOFault.m +++ b/EOControl/EOFault.m @@ -47,6 +47,7 @@ RCS_ID("$Id$") #include #include #include +#include #include #include #else @@ -59,6 +60,8 @@ RCS_ID("$Id$") #include #endif +#include + #include #include #include @@ -427,16 +430,16 @@ static Class EOFaultClass = NULL; - (void)dealloc { #ifdef DEBUG - NSDebugFLog(@"Dealloc EOFault %p. ThreadID=%p", - (void*)self,(void*)objc_thread_id()); + NSDebugFLog(@"Dealloc EOFault %p. %@", + (void*)self,GSCurrentThread()); #endif [EOFaultClass clearFault: self]; NSDebugMLog(@"EOFault dealloc self=%p",self); if (![EOFaultClass isFault:self]) // otherwise, this loop. [self dealloc]; #ifdef DEBUG - NSDebugFLog(@"Stop Dealloc EOFault %p. ThreadID=%p", - (void*)self,(void*)objc_thread_id()); + NSDebugFLog(@"Stop Dealloc EOFault %p. %@", + (void*)self,GSCurrentThread()); #endif }