[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_decls.tc,1.49,1.50 cg_nodes.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_decls.tc,1.49,1.50 cg_nodes.tc,1.80,1.81 |
Date: |
Wed, 25 Jun 2003 09:03:36 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv11235/codegen
Modified Files:
cg_decls.tc cg_nodes.tc
Log Message:
Introduce some new syntax to make it easier to call C code from C#.
Index: cg_decls.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_decls.tc,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -r1.49 -r1.50
*** cg_decls.tc 6 May 2003 09:53:20 -0000 1.49
--- cg_decls.tc 25 Jun 2003 13:03:33 -0000 1.50
***************
*** 732,735 ****
--- 732,743 ----
ILMethod *decl;
+ /* Ignore the method if "suppressCodeGen" is set. This can happen
+ for "extern" methods within the "<Module>" class, which are
+ actually imported from C into C# */
+ if(node && node->suppressCodeGen)
+ {
+ return;
+ }
+
/* Does the method have PInvoke information associated with it? */
if(ILMethod_HasPInvokeImpl(method))
Index: cg_nodes.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_nodes.tc,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -r1.80 -r1.81
*** cg_nodes.tc 30 May 2003 05:16:00 -0000 1.80
--- cg_nodes.tc 25 Jun 2003 13:03:33 -0000 1.81
***************
*** 875,878 ****
--- 875,879 ----
%nocreate ILType *localVarSig = {0};
%nocreate ILVisitMode visited = {ILVisitMode_NotVisited};
+ %nocreate int suppressCodeGen = {0};
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/codegen cg_decls.tc,1.49,1.50 cg_nodes.tc,1.80,1.81,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_decls.tc,1.38,1.39 cs_grammar.y,1.63,1.64
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2457,1.2458
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_decls.tc,1.38,1.39 cs_grammar.y,1.63,1.64
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2457,1.2458
- Index(es):