On Thu, 17 Aug 2006, David Berry wrote:
> What is the equivalent of the Fortran DAT__ROOT constant in
> the new HDS C interface? That is, how do I specify DAT__ROOT when
NULL pointer. That's a much better C idiom than some random string packed
into a struct.
> calling (for instance) ndfPlace? I suppose I can explicitly import the
> DAT__ROOT constant into an HDSLoc using HDS_IMPORT_FLOCATOR, but
> presumably it should not really be necessary for application code to do
> this.
General C code should definitely not be using IMPORT_FLOCATOR macros.
Those are only for interfaces (ie NDF) that need to internally convert
back to DAT__ROOT. HDS will then convert DAT__ROOT back to NULL in
fortran_interface.c.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|