octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qhull6 and octave


From: John W. Eaton
Subject: Re: qhull6 and octave
Date: Tue, 13 Dec 2011 15:54:27 -0500

On 30-Nov-2011, Brad Barber wrote:

| qhull5 was apparently built with qh_QHpointer=0 [user.h].  The
| global data structure for qhull is defined as a static array qh_qh
| [libqhull.h].  qhull6 was built with qh_QHpointer=1.  The global
| data structure for qhull is allocated on the heap with a pointer
| from the global variable qh_qh.  This allows for multiple global
| data structures that can be swapped by updating qh_qh.  Two other
| pointers/static structures are similarly defined (qh_qhmem for the
| memory allocator and qh_qhstat for statistics).

Is there some way we can determine how qh_QHpointer should be defined?
Preferably using a compile-only test instead of running a program.
That way the test could work even when cross-compiling Octave.

I also think it would be great if this level of detail was not exposed
to the user of qhull.  As a user, I don't really care how the memory
is allocated internally, so it would be helpful to not have to change
my program depending on how the qhull library happens to be compiled.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]