Minor changes for baseadd compilation and compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18394 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2004-01-12 19:42:18 +00:00
parent 443a569cba
commit 831216a9fe
7 changed files with 34 additions and 5 deletions

View file

@ -1,3 +1,17 @@
2004-01-12 Adam Fedor <fedor@gnu.org>
* Source/Makefile.preamble: Add library depends for baseadd
* Source/Additions/GSLock.m: Include GSCategories.
* Source/Additions/GSObjCRuntime.m: Define -methodForSelector:
since Apple doesn't.
* Source/Additions/GSXML.m: Idem as well as GSXPathObject method.
Change warnings varialbe to NSHashTable*.
* Tools/AGSHtml.m ([AGSHtml -outputNode:to:]): Change name
of block variable to avoid clash
* Tools/AGSOutput.m ([AGSOutput -split:]): Initialize local vars.
Changes suggested by Stephane Corthesy.
2003-12-20 Sheldon Gill <sheldon@iinet.net.au>
* Source/NSProcessInfo.m (+load): Fix coding standard violations.

View file

@ -31,6 +31,7 @@
#include <Foundation/NSThread.h>
#include "GNUstepBase/GSLock.h"
#include "GNUstepBase/GNUstep.h"
#include "GNUstepBase/GSCategories.h"
/**
* This implements a class which, when used in single-threaded mode,

View file

@ -53,6 +53,10 @@
@class NSNull;
@interface NSObject (MissingFromMacOSX)
- (IMP) methodForSelector: (SEL)aSelector;
@end
/** Deprecated ... use GSObjCFindVariable() */
BOOL
GSFindInstanceVariable(id obj, const char *name,

View file

@ -119,6 +119,15 @@ static xmlParserInputPtr
loadEntityFunction(const unsigned char *url, const unsigned char *eid,
xmlParserCtxtPtr ctxt);
@interface NSObject (MissingFromMacOSX)
- (IMP) methodForSelector: (SEL)aSelector;
@end
@interface GSXPathObject(Private)
+ (id) _newWithNativePointer: (xmlXPathObject *)lib
context: (GSXPathContext *)context;
@end
@interface GSXMLDocument (GSPrivate)
- (id) _initFrom: (void*)data parent: (id)p ownsLib: (BOOL)f;
@end
@ -1643,7 +1652,7 @@ static NSMapTable *nodeNames = 0;
*/
@implementation GSXMLParser
static NSMapTable *warnings = 0;
static NSHashTable *warnings = 0;
static NSString *endMarker = @"At end of incremental parse";

View file

@ -79,6 +79,7 @@ libgnustep-base_LIBRARIES_DEPEND_UPON += -lobjc
endif
ifeq ($(shared),yes)
libgnustep-base_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
libgnustep-baseadd_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
endif
#

View file

@ -1574,13 +1574,13 @@ static NSMutableSet *textNodes = nil;
}
else if ([name isEqual: @"protocol"] == YES)
{
NSString *name = [prop objectForKey: @"name"];
NSString *value = [prop objectForKey: @"name"];
unit = [NSString stringWithFormat: @"(%@)", name];
unit = [NSString stringWithFormat: @"(%@)", value];
[buf appendString: indent];
[buf appendString: @"<h2>"];
[buf appendString:
[self makeAnchor: unit ofType: @"protocol" name: name]];
[self makeAnchor: unit ofType: @"protocol" name: value]];
[buf appendString: @"</h2>\n"];
[self outputUnit: node to: buf];
unit = nil;

View file

@ -1843,7 +1843,7 @@ static BOOL snuggleStart(NSString *t)
unsigned ePos = r.location;
NSString *cName = nil;
NSString *mName = nil;
unichar c;
unichar c = 0;
BOOL isProtocol = NO;
if (pos < ePos