Update of /cvsroot/csdopenglnet/csdOpenGL/generator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27292/generator
Modified Files:
function.cs
Log Message:
entrypoint must be set for callback/delegate wrapper
Index: function.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/function.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** function.cs 11 Sep 2004 20:41:58 -0000 1.7
--- function.cs 11 Sep 2004 20:48:09 -0000 1.8
***************
*** 246,250 ****
if (isCB) {
addWrapper( t, n, p );
! fs2 = new FunctionSet( t, "__"+n, p );
} else {
fs2 = new FunctionSet( t, n, p );
--- 246,250 ----
if (isCB) {
addWrapper( t, n, p );
! fs2 = new FunctionSet( t, "__"+n, n, p );
} else {
fs2 = new FunctionSet( t, n, p );
***************
*** 369,372 ****
--- 369,377 ----
writer.Write( lib );
writer.Write( "\" " );
+ if ( fs.name!=fs.entryPoint) {
+ writer.Write( ", EntryPoint=\"" );
+ writer.Write( fs.entryPoint );
+ writer.Write( "\"" );
+ }
if ( (dllFlags!=null) && (dllFlags!="") ) {
writer.Write( ", " );
***************
*** 416,419 ****
--- 421,425 ----
/** The name of the function. */
public string name="";
+ public string entryPoint="";
/** The parameter list of the function */
public ArrayList parameters;
***************
*** 422,425 ****
--- 428,438 ----
type = _type;
name = _name;
+ entryPoint = _name;
+ parameters = _params;
+ }
+ public FunctionSet( string _type, string _name, string _entryPoint, ArrayList _params ) {
+ type = _type;
+ name = _name;
+ entryPoint = _entryPoint;
parameters = _params;
}
***************
*** 450,455 ****
type = _type;
name = _name;
! }
!
public object Clone() {
return new ParamSet( type, name );
--- 463,467 ----
type = _type;
name = _name;
! }
public object Clone() {
return new ParamSet( type, name );
|