mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
030f54a9cf
commit
d40d219015
72 changed files with 122 additions and 1787 deletions
|
@ -90,18 +90,8 @@
|
|||
* Ensure that the version encoded is that used by the abstract class.
|
||||
*/
|
||||
[self setVersion: [super version]];
|
||||
#if TYPE_ORDER == 0 && GS_WITH_GC
|
||||
GSMakeWeakPointer(self, "data");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if TYPE_ORDER == 0 && GS_WITH_GC
|
||||
- (void) finalize
|
||||
{
|
||||
GSAssignZeroingWeakPointer((void**)&data, (void*)nil);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Allocating and Initializing
|
||||
|
||||
- (id) initWithBytes: (const void *)value
|
||||
|
@ -109,11 +99,7 @@
|
|||
{
|
||||
typedef __typeof__(data) _dt;
|
||||
self = [super init];
|
||||
#if TYPE_ORDER == 0 && GS_WITH_GC
|
||||
GSAssignZeroingWeakPointer((void**)&data, (void*)(*(id*)value));
|
||||
#else
|
||||
data = *(_dt *)value;
|
||||
#endif
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue