From: Andrew R. <and...@us...> - 2005-12-19 22:53:16
|
On Sun, Dec 11, 2005 at 02:34:12PM -0800, Alan Irwin wrote: > > Thanks for that tip. I am still in the "learning by rote" mode for all > C-style languages so such "obvious" tips are a great help to me. > > I have now completed all but the rev array plscmap1l change to boolean type > for the lowest-levels of the java interface and PLStream.java. All the > examples still work fine and give the same results as previously. That > really only tests that the new typemaps associated with simple input PLBOOL > arguments are working properly. The only function that uses PLBOOL *OUTPUT > style of argument is plxormod. Can you think up a java test of that > function, Andrew? See typemaps.i from your swig installation for some > documentation about how to call such a java function with a *OUTPUT style of > argument). > I started adding in the plxormod parts of x01 to the java version of the example. Seemed a good way of testing out the new PLBOOL changes. Unfortunately this lead me into trying to get plMergeOpts to work under java. This is definitely not a trivial mapping exercise. I've not yet quite fathomed out the best way to get swig to pass arrays of structures (which include pointers to C functions) from java to C. Yuk! I've committed what I've done anyway. You can edit and rebuild the java version of x01 to set test_xor = 1. Seems to work fine so I think the plxormod PLBOOL changes are ok. Andrew |