mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
([Encoder +initialize]): Compare self with Encoder, not Coder.
([Encoder +encodeRootObject:withName:toStream:]): Rename method to -close. ([Encoder -encodeSelector:withName:name]): Use sel_get_any_typed_uid instead of sel_get_any_uid. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@995 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90a367533e
commit
1697d5f6cd
1 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,7 @@ my_object_is_class(id object)
|
||||||
|
|
||||||
+ (void) initialize
|
+ (void) initialize
|
||||||
{
|
{
|
||||||
if (self == [Coder class])
|
if (self == [Encoder class])
|
||||||
{
|
{
|
||||||
/* This code has not yet been ported to machines for which
|
/* This code has not yet been ported to machines for which
|
||||||
a pointer is not the same size as an int. */
|
a pointer is not the same size as an int. */
|
||||||
|
@ -208,7 +208,7 @@ my_object_is_class(id object)
|
||||||
{
|
{
|
||||||
id c = [[self alloc] initForWritingToStream: stream];
|
id c = [[self alloc] initForWritingToStream: stream];
|
||||||
[c encodeRootObject: anObject withName: name];
|
[c encodeRootObject: anObject withName: name];
|
||||||
[c closeCoding];
|
[c close];
|
||||||
[c release];
|
[c release];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
@ -447,7 +447,8 @@ my_object_is_class(id object)
|
||||||
#if 1 /* xxx Yipes,... careful... */
|
#if 1 /* xxx Yipes,... careful... */
|
||||||
/* xxx Think about something like this. */
|
/* xxx Think about something like this. */
|
||||||
if (!sel_types)
|
if (!sel_types)
|
||||||
sel_types = sel_get_type (sel_get_any_uid (sel_get_name (sel)));
|
sel_types =
|
||||||
|
sel_get_type (sel_get_any_typed_uid (sel_get_name (sel)));
|
||||||
#endif
|
#endif
|
||||||
if (!sel_name) [self error:"ObjC runtime didn't provide SEL name"];
|
if (!sel_name) [self error:"ObjC runtime didn't provide SEL name"];
|
||||||
if (!*sel_name) [self error:"ObjC runtime didn't provide SEL name"];
|
if (!*sel_name) [self error:"ObjC runtime didn't provide SEL name"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue