[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/csdoc il2doc.c,1.3,1.4
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/csdoc il2doc.c,1.3,1.4 |
Date: |
Thu, 04 Sep 2003 19:40:37 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/csdoc
In directory subversions:/tmp/cvs-serv1005/csdoc
Modified Files:
il2doc.c
Log Message:
Remove assembly version qualifications when dumping type names in
attributes for correct matching against pnetlib which uses version-agnostic
type names.
Index: il2doc.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/csdoc/il2doc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** il2doc.c 4 Sep 2003 04:29:57 -0000 1.3
--- il2doc.c 4 Sep 2003 23:40:35 -0000 1.4
***************
*** 915,918 ****
--- 915,940 ----
/*
+ * Strip down a string to remove assembly version qualifications.
+ */
+ static int StripString(const char *strValue, int strLen)
+ {
+ int posn;
+ posn = 0;
+ while(posn < (strLen - 11) &&
+ ILMemCmp(strValue + posn, ", Version=1", 11) != 0)
+ {
+ ++posn;
+ }
+ if(posn >= (strLen - 11))
+ {
+ return strLen;
+ }
+ else
+ {
+ return posn;
+ }
+ }
+
+ /*
* Append an attribute value to a name. Returns NULL
* if the value is invalid.
***************
*** 1013,1016 ****
--- 1035,1039 ----
return 0;
}
+ strLen = StripString(strValue, strLen);
len = strlen(name);
name = (char *)ILRealloc(name, len + strLen + 3);
***************
*** 1035,1038 ****
--- 1058,1062 ----
return 0;
}
+ strLen = StripString(strValue, strLen);
len = strlen(name);
name = (char *)ILRealloc(name, len + strLen + 9);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/csdoc il2doc.c,1.3,1.4,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2679,1.2680
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System/Collections/Specialized NameObjectCollectionBase.cs, 1.5, 1.6 StringCollection.cs, 1.2, 1.3 StringDictionary.cs, 1.2, 1.3
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2679,1.2680
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System/Collections/Specialized NameObjectCollectionBase.cs, 1.5, 1.6 StringCollection.cs, 1.2, 1.3 StringDictionary.cs, 1.2, 1.3
- Index(es):