[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/image class.c,1.17,1.18
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/image class.c,1.17,1.18 |
Date: |
Fri, 14 Feb 2003 20:14:44 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/image
In directory subversions:/tmp/cvs-serv19015/image
Modified Files:
class.c
Log Message:
ILClassNextMemberByKind: unroll the call to ILClassNextMember to make this
commonly-used function more efficient.
Index: class.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/image/class.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** class.c 17 Nov 2002 18:42:46 -0000 1.17
--- class.c 15 Feb 2003 01:14:42 -0000 1.18
***************
*** 1137,1148 ****
ILMember *ILClassNextMemberByKind(ILClass *info, ILMember *last, int kind)
{
! while((last = ILClassNextMember(info, last)) != 0)
{
if(((int)(last->kind)) == kind)
{
! break;
}
}
! return last;
}
--- 1137,1161 ----
ILMember *ILClassNextMemberByKind(ILClass *info, ILMember *last, int kind)
{
! if(last)
! {
! last = last->nextMember;
! }
! else if(info)
! {
! last = info->firstMember;
! }
! else
! {
! return 0;
! }
! while(last != 0)
{
if(((int)(last->kind)) == kind)
{
! return last;
}
+ last = last->nextMember;
}
! return 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/image class.c,1.17,1.18,
Rhys Weatherley <address@hidden> <=