comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: variable types in external C modules
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: variable types in external C modules [message #22228 is a reply to message #22226] Tue, 31 October 2000 02:35 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
"D. Mattes" wrote:
>
> hello IDL gurus:
>
> i am using call_external to run computations in external C modules. i
> want to send arrays of different types to the C module and have them be
> correctly declared in the C module. for example, if the IDL procedure
> sends floats, then the C module needs to declare the incoming arguments as
> floats, and be able to create some scratch memory of type float.
> however, if the IDL procedure sends doubles, then the C module needs to
> declare the variables as doubles. how can i determine the variable types
> of the input arguments from within the C module?
>
> thanks!
> david

I'm fairly sure that the CALL_EXTERNAL interface doesn't pass on any
information about the type of variable used in the call. It's pretty
much a case of you have to pass what the external code is expecting.

Can you pass an additional argument, the typecode of the array obtained
from the size function?

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Previous Topic: variable types in external C modules
Next Topic: Re: eps bounding boxes - more info

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:31:09 PDT 2025

Total time taken to generate the page: 0.00485 seconds