On 2009-08-23 12:31-0700 Alan W. Irwin wrote:

> [...] I [suggest implementing] a static function cmap0_palette_read 
> (consisting of
> most of the code in plspal0 now) that reads/checks the cmap0 palette files
> and which returns r,g,b,a data without messing with cmap0.  plsscmap0n calls
> plcmap0_def which is updated (if imin <= imax) to call cmap0_palette_read to
> always fill in the r,g,b,a data from imin to imax with default colours. An
> updated version of plspal0 merely calls cmap0_palette_read, optionally calls
> plsscmap0n to establish a cmap0 of the right size, and copies the r,g,b,a
> data delivered by cmap0_palette_read to cmap0.
>
> Note with this approach we don't need logic to avoid potential recursion
> issues (since plsscmap0n does not call plspal0) and we go back to exactly
> the behaviour we had before for plsscmap0n but implemented using a pure
> palette file approach.
>

Hez said:

>I like this approach more than the updated patch I posted to the list. Your
proposed approach sounds reasonably clean and straightforward. Thank you for
working on this!

You are welcome.  I have now finished the implementation as of revision
10318.  Could you please review my code changes since my C skills
(especially dealing with arrays in argument lists) are not as strong as I
would like. I have only done light testing with valgrind on one example so
far, but the results appear to be valgrind clean.  The Ada color
initialization issue is solved as well by this change (only one example
tested so far).

Tomorrow, I plan to do much more comprehensive testing.  I ask others here
to do that as well on all platforms accessible to them to make sure there
are no other showstopper issues left to fix before this forthcoming release.

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
__________________________

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to