Remove uses of the 'casts as lvalues' gcc extension.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2004-02-04 00:14:00 +00:00
parent d3cff19797
commit 7ddfe3e3df
6 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,12 @@
2004-02-04 01:10 Alexander Malmberg <alexander@malmberg.org>
* Headers/Foundation/NSObject.h (ASSIGNCOPY),
Source/GSDictionary.m (GSI_MAP_RETAIN_KEY),
Source/NSNotificationCenter.m (-init),
Source/NSProtocolChecker.m (-forwardInvocation:),
Source/Additions/GSXML.m (-initWithDocument:): Remove uses of the
now deprecated "casts as lvalues" gcc extension.
2004-02-02 Richard Frith-Macdonald <rfm@gnu.org> 2004-02-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m: Added class by Fred Kiefer to decode * Source/NSPropertyList.m: Added class by Fred Kiefer to decode

View file

@ -467,7 +467,7 @@ if (__value != __object) \
{ \ { \
__value = [__value copy]; \ __value = [__value copy]; \
} \ } \
(id)object = __value; \ object = __value; \
if (__object != nil) \ if (__object != nil) \
{ \ { \
[__object release]; \ [__object release]; \

View file

@ -3743,7 +3743,7 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
- (id) initWithDocument: (GSXMLDocument *)d - (id) initWithDocument: (GSXMLDocument *)d
{ {
ASSIGN (_document, d); ASSIGN (_document, d);
((xmlXPathContext*)_lib) = xmlXPathNewContext ([_document lib]); _lib = xmlXPathNewContext ([_document lib]);
((xmlXPathContext*)_lib)->node = xmlDocGetRootElement ([_document lib]); ((xmlXPathContext*)_lib)->node = xmlDocGetRootElement ([_document lib]);
return self; return self;

View file

@ -43,7 +43,7 @@
#define GSI_MAP_VTYPES GSUNION_OBJ #define GSI_MAP_VTYPES GSUNION_OBJ
#define GSI_MAP_HASH(M, X) [X.obj hash] #define GSI_MAP_HASH(M, X) [X.obj hash]
#define GSI_MAP_EQUAL(M, X,Y) [X.obj isEqual: Y.obj] #define GSI_MAP_EQUAL(M, X,Y) [X.obj isEqual: Y.obj]
#define GSI_MAP_RETAIN_KEY(M, X) ((id)(X).obj) = \ #define GSI_MAP_RETAIN_KEY(M, X) ((X).obj) = \
[((id)(X).obj) copyWithZone: map->zone] [((id)(X).obj) copyWithZone: map->zone]
#include "GNUstepBase/GSIMap.h" #include "GNUstepBase/GSIMap.h"

View file

@ -589,7 +589,7 @@ static NSNotificationCenter *default_center = nil;
{ {
if ((self = [super init]) != nil) if ((self = [super init]) != nil)
{ {
TABLE = newNCTable(); _table = newNCTable();
} }
return self; return self;
} }

View file

@ -75,7 +75,7 @@
{ {
if (((id)buffer) == _myTarget) if (((id)buffer) == _myTarget)
{ {
((id)buffer) = self; buffer = self;
[anInvocation setReturnValue: buffer]; [anInvocation setReturnValue: buffer];
} }
} }