dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/include il_program.h,1.43,1.44


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_program.h,1.43,1.44
Date: Tue, 06 May 2003 05:53:23 -0400

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv17226/include

Modified Files:
        il_program.h 
Log Message:


Implement PInvoke lookups for fields so that global variables
within shared objects can be accessed.


Index: il_program.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_program.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -r1.43 -r1.44
*** il_program.h        18 Apr 2003 09:15:53 -0000      1.43
--- il_program.h        6 May 2003 09:53:21 -0000       1.44
***************
*** 1483,1486 ****
--- 1483,1493 ----
  
  /*
+  * Create a new PInvoke member and attach it to a field.
+  */
+ ILPInvoke *ILPInvokeFieldCreate(ILField *field, ILToken token,
+                                                       ILUInt32 attributes, 
ILModule *module,
+                                                       const char *aliasName);
+ 
+ /*
   * Get the method associated with a PInvoke member.
   */
***************
*** 1488,1491 ****
--- 1495,1503 ----
  
  /*
+  * Get the field associated with a PInvoke member.
+  */
+ ILField *ILPInvokeGetField(ILPInvoke *pinvoke);
+ 
+ /*
   * Get the module associated with a PInvoke member.
   */
***************
*** 1504,1507 ****
--- 1516,1525 ----
  
  /*
+  * Find the PInvoke member for a particular field.
+  * Returns NULL if no PInvoke member.
+  */
+ ILPInvoke *ILPInvokeFindField(ILField *field);
+ 
+ /*
   * Get the marshal conversion type for a method parameter.
   * If "param" is 0, then report about the return type.
***************
*** 1528,1531 ****
--- 1546,1550 ----
  #define       ILPInvoke_Owner(pinvoke)                
(ILMember_Owner((pinvoke)))
  #define       ILPInvoke_Method(pinvoke)               
(ILPInvokeGetMethod((pinvoke)))
+ #define       ILPInvoke_Field(pinvoke)                
(ILPInvokeGetField((pinvoke)))
  #define       ILPInvoke_Module(pinvoke)               
(ILPInvokeGetModule((pinvoke)))
  #define       ILPInvoke_Alias(pinvoke)                
(ILPInvokeGetAlias((pinvoke)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]