dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_lookup.c,1.22,1.23


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_lookup.c,1.22,1.23
Date: Wed, 26 Feb 2003 19:59:56 -0500

Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv8885/cscc/csharp

Modified Files:
        cs_lookup.c 
Log Message:


AddMember: check to see if a member is already in a lookup results list
before adding it again, to avoid problems when the same interface is
included along multiple paths.


Index: cs_lookup.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_lookup.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** cs_lookup.c 26 Feb 2003 23:38:35 -0000      1.22
--- cs_lookup.c 27 Feb 2003 00:59:53 -0000      1.23
***************
*** 82,86 ****
                                          int kind)
  {
!       CSMemberInfo *info = (CSMemberInfo *)ILMalloc(sizeof(CSMemberInfo));
        if(!info)
        {
--- 82,102 ----
                                          int kind)
  {
!       CSMemberInfo *info;
! 
!       /* Check to make sure that the member isn't already in the list.
!          This can happen when the same member is located along different
!          paths in an interface inheritance hierarchy */
!       info = results->members;
!       while(info != 0)
!       {
!               if(info->member == member)
!               {
!                       return;
!               }
!               info = info->next;
!       }
! 
!       /* Add the new member to the list */
!       info = (CSMemberInfo *)ILMalloc(sizeof(CSMemberInfo));
        if(!info)
        {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]