move dealloc

main
sandyx86 1 year ago
parent 46cc4dd583
commit d95f5bfc7c

@ -6,36 +6,6 @@
typedef unsigned int YSUInteger;
/* @protocol YSObject
-(Class) class;
-(Class) superclass;
//-(BOOL) isEqual: (id)anObject;
//-(BOOL) isKindOfClass: (Class)aClass;
//-(BOOL) isMemberOfClass: (Class)aClass;
//-(BOOL) isProxy;
//-(YSUInteger) hash;
-(id) self;
//-(id) performSelector: (SEL)aSelector;
//-(id) performSelector: (SEL)aSelector
// withObject: (id)anObject;
//-(id) performSelector: (SEL)aSelector
// withObject: (id)object1
// withObject: (id)object2;
//-(BOOL) respondsToSelector: (SEL)aSelector;
//-(BOOL) conformsToProtocol: (Protocol *)aProtocol;
//-(id) retain;
//-(oneway void) release;
//-(id) autorelease;
//-(YSUInteger) retainCount;
//-(YSString *) description;
-(YSZone *)zone;
@end */
@interface YSObject : Object {
}

@ -65,12 +65,12 @@ inline id YSDeallocateObject(id theObject) {
return self;
}
#if !defined(__MINGW32__) && !defined(__MINGW64__)
-(void) dealloc {
YSDeallocateObject(self);
}
#if !defined(__MINGW32__) && !defined(__MINGW64__)
-(id) self {
return self;
}

@ -10,7 +10,6 @@
-(const char *) cString;
-(unsigned int) length;
-(void) dealloc;
@end

@ -9,10 +9,4 @@
return len;
}
//free(): invalid pointer
-(void) dealloc {
//[super dealloc];
free(c_string);
}
@end
Loading…
Cancel
Save