[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/engine lib_type.c,1.39,1.40
From: |
Richard Baumann <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine lib_type.c,1.39,1.40 |
Date: |
Mon, 28 Jul 2003 15:42:04 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv12251/engine
Modified Files:
lib_type.c
Log Message:
Implement InterfaceNameMatch in lib_type.
Index: lib_type.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_type.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** lib_type.c 28 Jul 2003 17:45:58 -0000 1.39
--- lib_type.c 28 Jul 2003 19:42:02 -0000 1.40
***************
*** 700,708 ****
* Determine if we have an interface name match for "GetInterface".
*/
! static int InterfaceNameMatch(ILClass *interface, ILString *name,
! ILBool ignoreCase)
{
! /* TODO */
! return 0;
}
--- 700,724 ----
* Determine if we have an interface name match for "GetInterface".
*/
! static int InterfaceNameMatch(ILExecThread *thread, ILClass *interface,
! ILString *name, ILBool ignoreCase)
{
! const char *nameUtf8;
!
! if (!name) { return 0; }
!
! if (!(nameUtf8 = ILStringToUTF8(thread, name)))
! {
! ILExecThreadThrowOutOfMemory(thread);
! return 0;
! }
!
! if (!ignoreCase)
! {
! return (!strcmp(interface->className->name, nameUtf8));
! }
! else
! {
! return (!ILStrICmp(interface->className->name, nameUtf8));
! }
}
***************
*** 718,722 ****
{
interface = ILImplementsGetInterface(impl);
! if(InterfaceNameMatch(interface, name, ignoreCase))
{
return interface;
--- 734,738 ----
{
interface = ILImplementsGetInterface(impl);
! if(InterfaceNameMatch(thread, interface, name, ignoreCase))
{
return interface;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine lib_type.c,1.39,1.40,
Richard Baumann <address@hidden> <=