[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/ilnative ilinternal.c,1.6,1.7
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/ilnative ilinternal.c,1.6,1.7 |
Date: |
Tue, 27 May 2003 22:14:28 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/ilnative
In directory subversions:/tmp/cvs-serv21036/ilnative
Modified Files:
ilinternal.c
Log Message:
Modify the internalcall interface for sockets to match the
changes to pnetlib; IPv6 and IrDA socket addresses should now work.
Index: ilinternal.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilnative/ilinternal.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** ilinternal.c 13 Dec 2002 09:06:52 -0000 1.6
--- ilinternal.c 28 May 2003 02:14:25 -0000 1.7
***************
*** 1248,1251 ****
--- 1248,1276 ----
/*
+ * Determine if a class is already in the class table.
+ */
+ static int classAlreadyPresent(const char *name, const char *nspace)
+ {
+ unsigned long posn;
+ for(posn = 0; posn < classTableSize; ++posn)
+ {
+ if(strcmp(name, classTable[posn].name) != 0)
+ {
+ continue;
+ }
+ if(nspace && classTable[posn].namespace &&
+ !strcmp(nspace, classTable[posn].namespace))
+ {
+ return 1;
+ }
+ else if(nspace == classTable[posn].namespace)
+ {
+ return 1;
+ }
+ }
+ return 0;
+ }
+
+ /*
* Load an IL image and print stub information for internalcall methods.
*/
***************
*** 1276,1279 ****
--- 1301,1311 ----
if(classInfo)
{
+ /* If we already saw this class in another assembly,
skip it */
+ if(classAlreadyPresent(ILClass_Name(classInfo),
+
ILClass_Namespace(classInfo)))
+ {
+ continue;
+ }
+
/* Determine if this class has "internalcall" methods */
method = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/ilnative ilinternal.c,1.6,1.7,
Rhys Weatherley <address@hidden> <=