diff options
author | kan <kan@FreeBSD.org> | 2003-07-11 03:42:15 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-07-11 03:42:15 +0000 |
commit | bb754981e6f83bc1f224dc4b7f478d80024e6c9f (patch) | |
tree | b912048c8df69db39da9eded7043642b2854fa0d /contrib/libobjc/Protocol.m | |
parent | c7bbbdd036d3dd7ae253fb13c9994215af06f073 (diff) | |
download | FreeBSD-src-bb754981e6f83bc1f224dc4b7f478d80024e6c9f.zip FreeBSD-src-bb754981e6f83bc1f224dc4b7f478d80024e6c9f.tar.gz |
Gcc 3.3.1-pre 2003-07-11 Objective C support bits.
Diffstat (limited to 'contrib/libobjc/Protocol.m')
-rw-r--r-- | contrib/libobjc/Protocol.m | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/libobjc/Protocol.m b/contrib/libobjc/Protocol.m index 43ba44e..3c18a02 100644 --- a/contrib/libobjc/Protocol.m +++ b/contrib/libobjc/Protocol.m @@ -53,7 +53,7 @@ struct objc_method_description_list { - (BOOL) conformsTo: (Protocol *)aProtocolObject { - int i; + size_t i; struct objc_protocol_list* proto_list; if (!strcmp(aProtocolObject->protocol_name, self->protocol_name)) @@ -88,9 +88,10 @@ struct objc_method_description_list { for (proto_list = protocol_list; proto_list; proto_list = proto_list->next) { - for (i=0; i < proto_list->count; i++) + size_t j; + for (j=0; j < proto_list->count; j++) { - if ((result = [proto_list->list[i] + if ((result = [proto_list->list[j] descriptionForInstanceMethod: aSel])) return result; } @@ -114,9 +115,10 @@ struct objc_method_description_list { for (proto_list = protocol_list; proto_list; proto_list = proto_list->next) { - for (i=0; i < proto_list->count; i++) + size_t j; + for (j=0; j < proto_list->count; j++) { - if ((result = [proto_list->list[i] + if ((result = [proto_list->list[j] descriptionForClassMethod: aSel])) return result; } |