Commit 034dec73 by Kresten Krab Thorup

(-awake): Corrected name of method -awake: to -awake for compatibility

(-awake): Corrected name of method -awake: to -awake for compatibility
(+streamVersion:): New method

From-SVN: r4150
parent d9a2904b
...@@ -109,10 +109,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -109,10 +109,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Archiving */ /* Archiving */
+ (int)version; + (int)version;
+ + setVersion:(int)aVersion; + + setVersion:(int)aVersion;
+ (int)streamVersion: (TypedStream*)aStream;
- - read: (TypedStream*)aStream; - - read: (TypedStream*)aStream;
- - write: (TypedStream*)aStream; - - write: (TypedStream*)aStream;
- - awake: (TypedStream*)aStream; - - awake;
@end @end
......
...@@ -315,6 +315,14 @@ extern int errno; ...@@ -315,6 +315,14 @@ extern int errno;
return self; return self;
} }
+ (int)streamVersion: (TypedStream*)aStream
{
if (aStream->mode == OBJC_READONLY)
return objc_get_stream_class_version (aStream, self);
else
return class_get_version (self);
}
// These are used to write or read the instance variables // These are used to write or read the instance variables
// declared in this particular part of the object. Subclasses // declared in this particular part of the object. Subclasses
// should extend these, by calling [super read/write: aStream] // should extend these, by calling [super read/write: aStream]
...@@ -333,9 +341,9 @@ extern int errno; ...@@ -333,9 +341,9 @@ extern int errno;
return self; return self;
} }
- awake: (TypedStream*)aStream - awake
{ {
// [super awake: aStream]; // [super awake];
return self; return self;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment