[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/engine lib_reflect.c,1.39,1.40
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine lib_reflect.c,1.39,1.40 |
Date: |
Wed, 09 Jul 2003 12:04:33 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv30577/engine
Modified Files:
lib_reflect.c
Log Message:
Generate Attribute[] arrays instead of Object[] arrays for
GetCustomAttributes()
Index: lib_reflect.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_reflect.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** lib_reflect.c 17 Jun 2003 09:30:12 -0000 1.39
--- lib_reflect.c 9 Jul 2003 16:04:30 -0000 1.40
***************
*** 404,407 ****
--- 404,408 ----
ILClass *classInfo;
ILAttribute *attr;
+ ILClass
*attributeClass=ILExecThreadLookupClass(thread,"System.Attribute");
/* Check that we have reflection access to the item */
***************
*** 409,414 ****
{
num = NumMatchingAttrs(thread, item, type, inherit);
! array = (System_Array *)ILExecThreadNew(thread,
"[oSystem.Object;",
!
"(Ti)V", (ILVaInt)num);
if(!array)
{
--- 410,417 ----
{
num = NumMatchingAttrs(thread, item, type, inherit);
! array = (System_Array*) _IL_Array_CreateArray_jiiii
! (thread, (type
? (ILNativeInt)type
! :
(ILNativeInt)attributeClass),
! 1, num, 0, 0);
if(!array)
{
***************
*** 457,462 ****
/* Invalid item, or insufficient access: return a zero-element array */
! return (System_Array *)ILExecThreadNew
! (thread, "[oSystem.Object;", "(Ti)V",
(ILVaInt)0);
}
--- 460,467 ----
/* Invalid item, or insufficient access: return a zero-element array */
! return (System_Array*) _IL_Array_CreateArray_jiiii
! (thread, (type
? (ILNativeInt)type
! :
(ILNativeInt)attributeClass),
! 1, 0, 0, 0);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine lib_reflect.c,1.39,1.40,
Gopal.V <address@hidden> <=