Update of /cvsroot/csdopenglnet/csdOpenGL/generator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28042
Modified Files:
config.cs generator.cs
Log Message:
additional footer and header can be specified; e.g. for adding using-aliases
Index: generator.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/generator.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** generator.cs 5 Aug 2004 15:50:48 -0000 1.4
--- generator.cs 5 Aug 2004 15:55:25 -0000 1.5
***************
*** 204,207 ****
--- 204,208 ----
// default usings
+ writer.WriteLine( config.Header );
writer.WriteLine( "using System;" );
writer.WriteLine( "using System.Runtime.InteropServices;" );
***************
*** 229,232 ****
--- 230,234 ----
writer.WriteLine( "}" ); // class footer
+ writer.WriteLine( config.Footer );
Debug.WriteLine( "Exiting Generator.writeFooter(StreamWriter)" );
Index: config.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/config.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** config.cs 5 Aug 2004 15:50:48 -0000 1.2
--- config.cs 5 Aug 2004 15:55:25 -0000 1.3
***************
*** 36,39 ****
--- 36,41 ----
public bool writeDelegates;
public bool writeDefines;
+ public string Header;
+ public string Footer;
/** \brief basetypes which should not be replaced
*/
***************
*** 66,69 ****
--- 68,73 ----
ignoreFunctions = new ArrayList();
ignoreFunctions.Add( "Function" );
+ Header = "/*Header*/";
+ Footer = "/*Fiiter*/";
}
}
|