[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_library.c,1.19,1.20
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_library.c,1.19,1.20 |
Date: |
Sat, 22 Feb 2003 06:21:03 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv5270/codegen
Modified Files:
cg_library.c
Log Message:
Add IAsyncResult and AsyncCallback to the builtin library.
Index: cg_library.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_library.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** cg_library.c 21 Nov 2002 05:25:38 -0000 1.19
--- cg_library.c 22 Feb 2003 11:21:01 -0000 1.20
***************
*** 279,282 ****
--- 279,283 ----
ILClass *exceptionClass;
ILClass *disposableInterface;
+ ILClass *asyncResultInterface;
ILClass *collectionInterface;
ILClass *enumeratorInterface;
***************
*** 284,287 ****
--- 285,289 ----
ILClass *delegateClass;
ILClass *multicastDelegateClass;
+ ILClass *asyncCallbackClass;
int constructorOK;
ILMethod *method;
***************
*** 504,507 ****
--- 506,517 ----
IL_META_TYPEDEF_ABSTRACT);
+ /* Create the "System.IAsyncResult" interface */
+ ABORT_IF(asyncResultInterface,
+ ILClassCreate(scope, 0, "IAsyncResult", "System", 0));
+ ILClassSetAttrs(asyncResultInterface, ~0,
+ IL_META_TYPEDEF_PUBLIC |
+ IL_META_TYPEDEF_INTERFACE |
+ IL_META_TYPEDEF_ABSTRACT);
+
/* Create the "System.Collections.ICollection" interface */
ABORT_IF(collectionInterface,
***************
*** 604,607 ****
--- 614,627 ----
ILGenOutOfMemory(info);
}
+
+ /* Create the "AsyncCallback" delegate class */
+ ABORT_IF(asyncCallbackClass,
+ ILClassCreate(scope, 0, "AsyncCallback", "System",
+ multicastDelegateClass));
+ ILClassSetAttrs(asyncCallbackClass, ~0,
+ IL_META_TYPEDEF_PUBLIC |
+ IL_META_TYPEDEF_SERIALIZABLE |
+ IL_META_TYPEDEF_BEFORE_FIELD_INIT |
+ IL_META_TYPEDEF_ABSTRACT);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/codegen cg_library.c,1.19,1.20,
Rhys Weatherley <address@hidden> <=