Changeset 1391 for branches/GNU/src/gcc/libobjc/Protocol.m
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libobjc/Protocol.m
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 54 54 - (BOOL) conformsTo: (Protocol *)aProtocolObject 55 55 { 56 int i;56 size_t i; 57 57 struct objc_protocol_list* proto_list; 58 58 … … 81 81 struct objc_method_description *result; 82 82 83 for (i = 0; i < instance_methods->count; i++) 84 { 85 if (!strcmp ((char*)instance_methods->list[i].name, name)) 86 return &(instance_methods->list[i]); 87 } 83 if (instance_methods) 84 for (i = 0; i < instance_methods->count; i++) 85 { 86 if (!strcmp ((char*)instance_methods->list[i].name, name)) 87 return &(instance_methods->list[i]); 88 } 88 89 89 90 for (proto_list = protocol_list; proto_list; proto_list = proto_list->next) 90 91 { 91 for (i=0; i < proto_list->count; i++) 92 size_t j; 93 for (j=0; j < proto_list->count; j++) 92 94 { 93 if ((result = [proto_list->list[ i]95 if ((result = [proto_list->list[j] 94 96 descriptionForInstanceMethod: aSel])) 95 97 return result; … … 107 109 struct objc_method_description *result; 108 110 109 for (i = 0; i < class_methods->count; i++) 110 { 111 if (!strcmp ((char*)class_methods->list[i].name, name)) 112 return &(class_methods->list[i]); 113 } 111 if (class_methods) 112 for (i = 0; i < class_methods->count; i++) 113 { 114 if (!strcmp ((char*)class_methods->list[i].name, name)) 115 return &(class_methods->list[i]); 116 } 114 117 115 118 for (proto_list = protocol_list; proto_list; proto_list = proto_list->next) 116 119 { 117 for (i=0; i < proto_list->count; i++) 120 size_t j; 121 for (j=0; j < proto_list->count; j++) 118 122 { 119 if ((result = [proto_list->list[ i]123 if ((result = [proto_list->list[j] 120 124 descriptionForClassMethod: aSel])) 121 125 return result; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.