mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
06deb92741
commit
d7651856b9
7 changed files with 34 additions and 5 deletions
14
ChangeLog
14
ChangeLog
|
@ -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>
|
2003-12-20 Sheldon Gill <sheldon@iinet.net.au>
|
||||||
|
|
||||||
* Source/NSProcessInfo.m (+load): Fix coding standard violations.
|
* Source/NSProcessInfo.m (+load): Fix coding standard violations.
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <Foundation/NSThread.h>
|
#include <Foundation/NSThread.h>
|
||||||
#include "GNUstepBase/GSLock.h"
|
#include "GNUstepBase/GSLock.h"
|
||||||
#include "GNUstepBase/GNUstep.h"
|
#include "GNUstepBase/GNUstep.h"
|
||||||
|
#include "GNUstepBase/GSCategories.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This implements a class which, when used in single-threaded mode,
|
* This implements a class which, when used in single-threaded mode,
|
||||||
|
|
|
@ -53,6 +53,10 @@
|
||||||
|
|
||||||
@class NSNull;
|
@class NSNull;
|
||||||
|
|
||||||
|
@interface NSObject (MissingFromMacOSX)
|
||||||
|
- (IMP) methodForSelector: (SEL)aSelector;
|
||||||
|
@end
|
||||||
|
|
||||||
/** Deprecated ... use GSObjCFindVariable() */
|
/** Deprecated ... use GSObjCFindVariable() */
|
||||||
BOOL
|
BOOL
|
||||||
GSFindInstanceVariable(id obj, const char *name,
|
GSFindInstanceVariable(id obj, const char *name,
|
||||||
|
|
|
@ -119,6 +119,15 @@ static xmlParserInputPtr
|
||||||
loadEntityFunction(const unsigned char *url, const unsigned char *eid,
|
loadEntityFunction(const unsigned char *url, const unsigned char *eid,
|
||||||
xmlParserCtxtPtr ctxt);
|
xmlParserCtxtPtr ctxt);
|
||||||
|
|
||||||
|
@interface NSObject (MissingFromMacOSX)
|
||||||
|
- (IMP) methodForSelector: (SEL)aSelector;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface GSXPathObject(Private)
|
||||||
|
+ (id) _newWithNativePointer: (xmlXPathObject *)lib
|
||||||
|
context: (GSXPathContext *)context;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface GSXMLDocument (GSPrivate)
|
@interface GSXMLDocument (GSPrivate)
|
||||||
- (id) _initFrom: (void*)data parent: (id)p ownsLib: (BOOL)f;
|
- (id) _initFrom: (void*)data parent: (id)p ownsLib: (BOOL)f;
|
||||||
@end
|
@end
|
||||||
|
@ -1643,7 +1652,7 @@ static NSMapTable *nodeNames = 0;
|
||||||
*/
|
*/
|
||||||
@implementation GSXMLParser
|
@implementation GSXMLParser
|
||||||
|
|
||||||
static NSMapTable *warnings = 0;
|
static NSHashTable *warnings = 0;
|
||||||
|
|
||||||
static NSString *endMarker = @"At end of incremental parse";
|
static NSString *endMarker = @"At end of incremental parse";
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ libgnustep-base_LIBRARIES_DEPEND_UPON += -lobjc
|
||||||
endif
|
endif
|
||||||
ifeq ($(shared),yes)
|
ifeq ($(shared),yes)
|
||||||
libgnustep-base_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
|
libgnustep-base_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
|
||||||
|
libgnustep-baseadd_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -1574,13 +1574,13 @@ static NSMutableSet *textNodes = nil;
|
||||||
}
|
}
|
||||||
else if ([name isEqual: @"protocol"] == YES)
|
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: indent];
|
||||||
[buf appendString: @"<h2>"];
|
[buf appendString: @"<h2>"];
|
||||||
[buf appendString:
|
[buf appendString:
|
||||||
[self makeAnchor: unit ofType: @"protocol" name: name]];
|
[self makeAnchor: unit ofType: @"protocol" name: value]];
|
||||||
[buf appendString: @"</h2>\n"];
|
[buf appendString: @"</h2>\n"];
|
||||||
[self outputUnit: node to: buf];
|
[self outputUnit: node to: buf];
|
||||||
unit = nil;
|
unit = nil;
|
||||||
|
|
|
@ -1843,7 +1843,7 @@ static BOOL snuggleStart(NSString *t)
|
||||||
unsigned ePos = r.location;
|
unsigned ePos = r.location;
|
||||||
NSString *cName = nil;
|
NSString *cName = nil;
|
||||||
NSString *mName = nil;
|
NSString *mName = nil;
|
||||||
unichar c;
|
unichar c = 0;
|
||||||
BOOL isProtocol = NO;
|
BOOL isProtocol = NO;
|
||||||
|
|
||||||
if (pos < ePos
|
if (pos < ePos
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue