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

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

[Dotgnu-pnet-commits] CVS: pnet/image item.c,1.4,1.5


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/image item.c,1.4,1.5
Date: Wed, 19 Feb 2003 00:02:12 -0500

Update of /cvsroot/dotgnu-pnet/pnet/image
In directory subversions:/tmp/cvs-serv5160/image

Modified Files:
        item.c 
Log Message:


Implement the helper functions ILProgramItemToGenericPar
and ILProgramItemToMethodSpec.


Index: item.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/image/item.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** item.c      26 Jun 2002 05:48:10 -0000      1.4
--- item.c      19 Feb 2003 05:02:08 -0000      1.5
***************
*** 852,855 ****
--- 852,887 ----
  }
  
+ ILGenericPar *ILProgramItemToGenericPar(ILProgramItem *item)
+ {
+       if(!item)
+       {
+               return 0;
+       }
+       else if((item->token & IL_META_TOKEN_MASK) == IL_META_TOKEN_GENERIC_PAR)
+       {
+               return (ILGenericPar *)item;
+       }
+       else
+       {
+               return 0;
+       }
+ }
+ 
+ ILMethodSpec *ILProgramItemToMethodSpec(ILProgramItem *item)
+ {
+       if(!item)
+       {
+               return 0;
+       }
+       else if((item->token & IL_META_TOKEN_MASK) == IL_META_TOKEN_METHOD_SPEC)
+       {
+               return (ILMethodSpec *)item;
+       }
+       else
+       {
+               return 0;
+       }
+ }
+ 
  #ifdef        __cplusplus
  };





reply via email to

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