On 2011-03-08 11:54-0800 Alan W. Irwin wrote: > I think cleaning up our libplplot interface by using the const > modifier for arrays whenever appropriate would be a good idea. > Obviously this change would require substantial propagation effort, > and might even require a soversion bump (if it constitutes a > backwards-incompatible API change). But a cleaner PLplot interface is > worth having in my view. > > What do others here feel about this proposed change?
I have already had one positive response off-list from Andrew on this question so I have decided to start the process to see how far I can get. For my local version of the PLplot code I have already modified our API in plplot.h appropriately using swig-support/plplotcapi.i as a guide for the ambiguous pointer argument cases. I am currently working through all the source files in the src directory dealing with the gcc compiler warnings and errors that resulted from that plplot.h change. So far (about one-fourth the way through all the files) the required src changes seem pretty straightforward. Thus, I am currently hopeful that by Thursday I will have achieved my first goal which is to get the C libraries and examples to build and run without issues for this large change to plplot.h. After that, I plan to look at what is required to propagate this "const" change to all our language bindings. 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); PLplot scientific plotting software package (plplot.org); 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 __________________________ ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel