Change finalization to match MacOS-X

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-01-12 18:36:37 +00:00
parent d304d9ee34
commit f8441e1092
22 changed files with 116 additions and 95 deletions

View file

@ -40,11 +40,11 @@
#include <objc/Protocol.h>
@interface NSDistantObject(GNUstepExtensions) <GCFinalization>
@interface NSDistantObject(GNUstepExtensions)
- (Class) classForPortCoder;
- (const char *) selectorTypeForProxy: (SEL)selector;
- (id) forward: (SEL)aSel :(arglist_t)frame;
- (void) gcFinalize;
- (void) finalize;
@end
#define DO_FORWARD_INVOCATION(_SELX, _ARG1) ({ \
@ -446,7 +446,7 @@ enum proxyLocation
- (void) dealloc
{
[self gcFinalize];
[self finalize];
[super dealloc];
}
@ -825,7 +825,7 @@ enum proxyLocation
/**
* Used by the garbage collection system to tidy up when a proxy is destroyed.
*/
- (void) gcFinalize
- (void) finalize
{
if (_connection)
{