mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
standardise -setDebug: extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39554 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1db866fde7
commit
67e4c0581d
8 changed files with 42 additions and 15 deletions
|
@ -5454,14 +5454,15 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (void) setDebug: (BOOL)flag
|
||||
- (int) setDebug: (int)flag
|
||||
{
|
||||
#ifdef GNUSTEP
|
||||
if ([handle respondsToSelector: _cmd] == YES)
|
||||
{
|
||||
[(id)handle setDebug: flag];
|
||||
return [(id)handle setDebug: flag];
|
||||
}
|
||||
#endif
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void) setCompact: (BOOL)flag
|
||||
|
|
|
@ -128,7 +128,7 @@ static NSString *httpVersion = @"1.1";
|
|||
reading,
|
||||
} connectionState;
|
||||
}
|
||||
- (void) setDebug: (BOOL)flag;
|
||||
- (int) setDebug: (int)flag;
|
||||
- (void) _tryLoadInBackground: (NSURL*)fromURL;
|
||||
@end
|
||||
|
||||
|
@ -1304,9 +1304,12 @@ debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
return result;
|
||||
}
|
||||
|
||||
- (void) setDebug: (BOOL)flag
|
||||
- (int) setDebug: (int)flag
|
||||
{
|
||||
debug = flag;
|
||||
int old = debug;
|
||||
|
||||
debug = flag ? YES : NO;
|
||||
return old;
|
||||
}
|
||||
|
||||
- (void) setReturnAll: (BOOL)flag
|
||||
|
|
|
@ -335,7 +335,7 @@ GS_PRIVATE_INTERNAL(NSConnection)
|
|||
|
||||
- (void) handlePortMessage: (NSPortMessage*)msg;
|
||||
- (void) _runInNewThread;
|
||||
+ (void) setDebug: (int)val;
|
||||
+ (int) setDebug: (int)val;
|
||||
- (void) _enableKeepalive;
|
||||
|
||||
- (void) addLocalObject: (NSDistantObject*)anObj;
|
||||
|
@ -2466,9 +2466,12 @@ static NSLock *cached_proxies_gate = nil;
|
|||
[loop run];
|
||||
}
|
||||
|
||||
+ (void) setDebug: (int)val
|
||||
+ (int) setDebug: (int)val
|
||||
{
|
||||
int old = debug_connection;
|
||||
|
||||
debug_connection = val;
|
||||
return old;
|
||||
}
|
||||
|
||||
- (void) _keepalive: (NSNotification*)n
|
||||
|
|
|
@ -380,13 +380,16 @@ GS_ROOT_CLASS @interface GSDistantObjectPlaceHolder
|
|||
@end
|
||||
|
||||
@interface NSDistantObject (Debug)
|
||||
+ (void) setDebug: (int)val;
|
||||
+ (int) setDebug: (int)val;
|
||||
@end
|
||||
|
||||
@implementation NSDistantObject (Debug)
|
||||
+ (void) setDebug: (int)val
|
||||
+ (int) setDebug: (int)val
|
||||
{
|
||||
int old = debug_proxy;
|
||||
|
||||
debug_proxy = val;
|
||||
return old;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -559,9 +559,9 @@ static Class NSURLHandleClass = 0;
|
|||
/* Private method ... subclasses override this to enable debug to be
|
||||
* turned off and on.
|
||||
*/
|
||||
- (void) setDebug: (BOOL)aFlag
|
||||
- (int) setDebug: (int)aFlag
|
||||
{
|
||||
return;
|
||||
return NO;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -276,9 +276,12 @@ typedef struct {
|
|||
return o;
|
||||
}
|
||||
|
||||
- (void) setDebug: (BOOL)flag
|
||||
- (int) setDebug: (int)flag
|
||||
{
|
||||
this->debug = flag;
|
||||
int old = this->debug;
|
||||
|
||||
this->debug = flag ? YES : NO;
|
||||
return old;
|
||||
}
|
||||
|
||||
- (NSTimeInterval) timeoutInterval
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue