mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Inherit from NSObject, not Object.
Don't free connection object, release it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d9e982bf0c
commit
7b09906aaf
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
id p;
|
id p;
|
||||||
id callback_receiver = [Object new];
|
id callback_receiver = [NSObject new];
|
||||||
id o;
|
id o;
|
||||||
id localObj;
|
id localObj;
|
||||||
unsigned long i = 4;
|
unsigned long i = 4;
|
||||||
|
@ -95,7 +95,7 @@ int main(int argc, char *argv[])
|
||||||
[p sendCharPtrPtr:&string];
|
[p sendCharPtrPtr:&string];
|
||||||
/* testing "-perform:" */
|
/* testing "-perform:" */
|
||||||
if (p != [p perform:sel_get_any_uid("self")])
|
if (p != [p perform:sel_get_any_uid("self")])
|
||||||
[Object error:"trying perform:"];
|
[NSObject error:"trying perform:"];
|
||||||
/* testing "bycopy" */
|
/* testing "bycopy" */
|
||||||
/* reverse the order on these next two and it doesn't crash,
|
/* reverse the order on these next two and it doesn't crash,
|
||||||
however, having manyArgs called always seems to crash.
|
however, having manyArgs called always seems to crash.
|
||||||
|
@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
||||||
printf(">>returned float %f\n", [p returnFloat]);
|
printf(">>returned float %f\n", [p returnFloat]);
|
||||||
printf(">>returned double %f\n", [p returnDouble]);
|
printf(">>returned double %f\n", [p returnDouble]);
|
||||||
|
|
||||||
localObj = [[Object alloc] init];
|
localObj = [[NSObject alloc] init];
|
||||||
[p addObject:localObj];
|
[p addObject:localObj];
|
||||||
k = [p count];
|
k = [p count];
|
||||||
for (j = 0; j < k; j++)
|
for (j = 0; j < k; j++)
|
||||||
|
@ -124,7 +124,7 @@ int main(int argc, char *argv[])
|
||||||
j, (unsigned)[remote_peer_obj hash]);
|
j, (unsigned)[remote_peer_obj hash]);
|
||||||
}
|
}
|
||||||
[c runConnectionWithTimeout:1500];
|
[c runConnectionWithTimeout:1500];
|
||||||
[c dealloc];
|
[c release];
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue