Hi José,
at a first glance this patch (and the one for plgradient) seems okay.
Only one tiny thing: I am not sure free() can be used with a NULL
argument. So, I'd say you have to guard against that. (If no one
picks this up, I will)
Regards,
Arjen
On 2010-12-23 09:55, José Luis García Pallero
El día 23 de diciembre de 2010 13:35, Arjen Markus
arjen.mar...@deltares.nl escribió:
Hi José,
at a first glance this patch (and the one for plgradient) seems okay.
Only one tiny thing: I am not sure free() can be used with a NULL
argument. So, I'd say you have to guard against that. (If no
Hi José,
ah, well, personally I detest this type of magic, it means I
have to remember all these little facts, but it means that
your patch ought to be applicable as is. I will see to it.
Regards,
Arjen
On 2010-12-23 13:39, José Luis García Pallero wrote:
El día 23 de diciembre de 2010 13:35,
El día 23 de diciembre de 2010 13:41, Arjen Markus
arjen.mar...@deltares.nl escribió:
Hi José,
ah, well, personally I detest this type of magic, it means I
have to remember all these little facts, but it means that
your patch ought to be applicable as is. I will see to it.
Regards,
Arjen
Hi José,
stopping the program in such dramatic circumstances may be the
best option. We have had some discussion recently about the
best policy, but I am what consensus was reached. I suggest
right now we go ahead with your patch and see what corrections
are needed later (running out of memory
On Thursday, December 23, 2010 at 09:28:20 (+0100) José Luis García Pallero
writes:
Attached I send a patch for svn plfill() that uses malloc/free in case
of n PL_MAXPOLY-1. I've used a behavior similar to the function
plP_plfclp() in plfill.c. plP_plfclp tests if the number of point is
Hi Arjen, José, and Maurice:
(I am explicitly addressing Maurice as well since he may know the
origin of the free_mem macro that I discuss below.)
First, I would like to thank José for his plfill and plgradient
patches, and I am glad Arjen is going to apply them. That will make
my further
On 2010-12-22 18:59-0800 Alan W. Irwin wrote:
Andrew, the next chance you have to work on PLplot would you be
willing to at least start swig-generated octave bindings? I don't
really understand octave that well, but if you put together some
typemaps for octave for input PLINT, PLFLT, and
On Dec 22, 2010, at 9:05 PM, Maurice LeBrun wrote:
A cautionary note: PL_MAXPOLY impacts a fair amount of code. Also there are
heap-vs-stack performance implications -- e.g. directly moving from a fixed
allocation to a malloc/free each time plfill() is called could suck for the
many
Attached I send the (I think) definitive patches for plfill.c and
plgradient.c. I've used the plexit() function if any malloc() fails
for consistency with the rest of the code. I'll try to find the other
sources in wich PL_MAXPOLY appears.
Sorry for the previous wrong patches.
--
10 matches
Mail list logo