Modified cspace.i and tutorials in java can be found at : http://www.allcolor.org/crystalspace-tutorial-java-src.jar http://www.allcolor.org/cspace.i
regards, Quentin Anciaux On Friday 09 February 2007 18:56:14 Quentin Anciaux wrote: > This > > %apply int { uint32_t }; > %apply int { uint32 }; > %include "csutil/flags.h" > > is enough in fact. > Quentin > > On Friday 09 February 2007 18:51:25 Quentin Anciaux wrote: > > Great thanks, > > > > doing this: > > > > %typemap(in) int { > > $1 = $input; > > } > > %typemap(out) int { > > $result = $1; > > } > > %apply int { uint32_t }; > > %apply int { uint32 }; > > %include "csutil/flags.h" > > > > Did the trick. > > > > On Friday 09 February 2007 18:21:43 Quentin Anciaux wrote: > > > On Friday 09 February 2007 17:50:26 res wrote: > > > > On 09.02.2007 17:27, Quentin Anciaux wrote: > > > > > Because "csutil/flags.h" was not included, which gives only access > > > > > to a class SWIGTYPE_p_csFlags with which you can do nothing. > > > > > > > > Hmm, maybe that should be corrected then :) > > > > > > > > > By adding %include "csutil/flags.h", it is better, you have access > > > > > to csflags class (and the Set method) but the method is defined > > > > > like this > > > > > > > > > > > > > > > public void Set(SWIGTYPE_p_uint32_t mask); > > > > > > > > > > Which again gives you a pointer with which you can do nothing > > > > > except pass it. > > > > > > > > > > I didn't found how to tell swig to take uint32 as a java int > > > > > instead of returning an uint32 pointer... so I added the inlined > > > > > function above. > > > > > > > > Hm, I'm not much of a swig person myself. But perhaps a typemap > > > > (http://www.swig.org/Doc1.3/Typemaps.html, > > > > http://www.swig.org/Doc1.3/Java.html#java_typemaps) would help... > > > > > > > > -f.r. > > > > > > I'll look at it. > > > > > > Thanks. > > > > > > ----------------------------------------------------------------------- > > >-- Using Tomcat but need to do more? Need to support web services, > > > security? Get stuff done quickly with pre-integrated technology to make > > > your job easier. Download IBM WebSphere Application Server v.1.0.1 > > > based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=12164 > > >2 _______________________________________________ > > > Crystal-main mailing list > > > Crystal-main@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/crystal-main > > > Unsubscribe: > > > mailto:[EMAIL PROTECTED] > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Crystal-main mailing list > > Crystal-main@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/crystal-main > > Unsubscribe: > > mailto:[EMAIL PROTECTED] > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Crystal-main mailing list > Crystal-main@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/crystal-main > Unsubscribe: > mailto:[EMAIL PROTECTED] ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]