mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Improved logging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5139 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e5d4612f25
commit
901c1de757
7 changed files with 75 additions and 11 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <Foundation/NSUtilities.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#include <base/fast.x>
|
||||
|
||||
|
@ -331,7 +332,7 @@ static SEL rlSel = @selector(removeLastObject);
|
|||
return self;
|
||||
}
|
||||
}
|
||||
NSLog(@"Contents of file does not contain an array");
|
||||
NSWarnMLog(@"Contents of file does not contain an array", 0);
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
|
@ -881,7 +882,7 @@ static NSString *indentStrings[] = {
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
i = [self count];
|
||||
|
@ -912,7 +913,7 @@ static NSString *indentStrings[] = {
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
c = [self count];
|
||||
|
@ -951,7 +952,7 @@ static NSString *indentStrings[] = {
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
c = [self count];
|
||||
|
@ -986,7 +987,7 @@ static NSString *indentStrings[] = {
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
i = [self count];
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <base/behavior.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSPortCoder.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
static SEL eqSel = @selector(isEqual:);
|
||||
|
||||
|
@ -425,7 +426,7 @@ static SEL eqSel = @selector(isEqual:);
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
index = _count;
|
||||
|
@ -480,7 +481,7 @@ static SEL eqSel = @selector(isEqual:);
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
index = _count;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <Foundation/NSUtilities.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSPortCoder.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
|
||||
#define GSI_MAP_RETAIN_VAL(X)
|
||||
|
@ -258,7 +259,7 @@
|
|||
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
bucket = GSIMapBucketForKey(&map, (GSIMapKey)anObject);
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSPortCoder.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#include <base/behavior.h>
|
||||
#include <base/fast.x>
|
||||
|
@ -383,7 +384,7 @@ myEqual(id self, id other)
|
|||
{
|
||||
if (aKey == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil key");
|
||||
NSWarnMLog(@"attempt to remove nil key", 0);
|
||||
return;
|
||||
}
|
||||
GSIMapRemoveKey(&map, (GSIMapKey)aKey);
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <Foundation/NSUtilities.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSPortCoder.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#define GSI_MAP_HAS_VALUE 0
|
||||
#define GSI_MAP_KTYPES GSUNION_OBJ
|
||||
|
@ -236,7 +237,7 @@
|
|||
{
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"attempt to remove nil object");
|
||||
NSWarnMLog(@"attempt to remove nil object", 0);
|
||||
return;
|
||||
}
|
||||
GSIMapRemoveKey(&map, (GSIMapKey)anObject);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue