diff --git a/Source/NSGArchiver.m b/Source/NSGArchiver.m index f2c75849d..f915ff505 100644 --- a/Source/NSGArchiver.m +++ b/Source/NSGArchiver.m @@ -1,8 +1,8 @@ /* Concrete NSArchiver for GNUStep based on GNU Coder class - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum - Date: April 1995 + Created: April 1995 This file is part of the GNU Objective C Class Library. @@ -23,26 +23,18 @@ #include #include -#include +#include #include @implementation NSGArchiver + (void) initialize { - static int done = 0; - [self error:"This class not ready for business yet."]; - if (!done) - { - done = 1; - class_add_behavior([NSGArchiver class], [NSGCoder class]); - } + if (self == [NSGArchiver class]) + class_add_behavior([NSGArchiver class], [Coder class]); } -/* This is the designated initializer */ -- (id) initForWritingWithMutableData: (NSMutableData*)mdata -{ - //[self initEncodingOnStream:mdata]; - return self; -} +#define self ((Coder*)self) +/* In case any other methods are defined here later... */ + @end