Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (21 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28dir.info
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libobjc/Protocol.m

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    5454- (BOOL) conformsTo: (Protocol *)aProtocolObject
    5555{
    56   int i;
     56  size_t i;
    5757  struct objc_protocol_list* proto_list;
    5858
     
    8181  struct objc_method_description *result;
    8282
    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      }
    8889
    8990  for (proto_list = protocol_list; proto_list; proto_list = proto_list->next)
    9091    {
    91       for (i=0; i < proto_list->count; i++)
     92      size_t j;
     93      for (j=0; j < proto_list->count; j++)
    9294        {
    93           if ((result = [proto_list->list[i]
     95          if ((result = [proto_list->list[j]
    9496                         descriptionForInstanceMethod: aSel]))
    9597            return result;
     
    107109  struct objc_method_description *result;
    108110
    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      }
    114117
    115118  for (proto_list = protocol_list; proto_list; proto_list = proto_list->next)
    116119    {
    117       for (i=0; i < proto_list->count; i++)
     120      size_t j;
     121      for (j=0; j < proto_list->count; j++)
    118122        {
    119           if ((result = [proto_list->list[i]
     123          if ((result = [proto_list->list[j]
    120124                         descriptionForClassMethod: aSel]))
    121125            return result;
Note: See TracChangeset for help on using the changeset viewer.