Hi Arjen:

To substantially reduce the maintenance burden introduced by
bindings/tcl/plplot_parameters.h, I have created (as of revision
11563) a custom target, check_tcl_parameters, that uses the sed script
bindings/tcl/global_defines.sed to check the consistency of
bindings/tcl/plplot_parameters.h with the #defines in
bindings/swig-support/plplotcapi.i.  (The sed script also appends a
definition of PL_PI which should prove useful.) I have  followed
the directions in the top of the new version of
bindings/tcl/plplot_parameters.h to make everything consistent.

The result is that PL_PI and everything #defined in
bindings/swig-support/plplotcapi.i should be accessible from Tcl
as 122 (!) namespaced variables.

This change gives us the opportunity of replacing locally defined
variables (such as pi, MAG_COLOR, etc.) in the examples by the
namespaced variables defined in plplot_parameters.h.  Would you be
willing to take advantage of that opportunity by doing the requisite
changes in the Tcl examples? That would serve as a nice demonstration
to our users of how to access those namespaced variables while getting
rid of a lot of redundant local variables.

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
__________________________

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to