On 2014-01-22 08:55+0800 Hailiang Wang wrote: > By the way, before cwrap is made, I have tried another way, parsing > the PLPlot docbook XML document and generate the wrapper. The pro of > the method is that XML is a lot easier to parse than C header, and > also in the document, the parameters are already marked as "IN" or > "OUT", sometimes more accurate than guessing by "const" modifier. The > con is that the doc may not be fully synchronized with the header > file.
Hi Hailiang: Yes, api.xml is currently maintained by hand so it is a substantial concern whether it is consistent with the header. But you have given me an idea which would be to use gccxml to convert the header information into XML, then check api.xml to make sure it is consistent with that gccxml-generated information (i.e., check for a consistent list of functions and a consistent list of arguments and their type for each of those functions). Once such a checking implementation were implemented, it should also be possible to extend it slightly to update the relevant subset of api.xml information to be consistent with the header information. I have too much on my plate already to implement this idea in the forseeable future so I would welcome someone else here stepping forward and implementing it instead. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel