From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_05,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18d13d17c23e97a2,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-05 15:03:03 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sparc53.cs.uiuc.edu!mmcnett From: mmcnett@sparc53.cs.uiuc.edu (mcnett michael david) Newsgroups: comp.lang.ada Subject: GNAT pragma IMPORT and type conversions Date: 5 Oct 94 18:42:19 GMT Organization: University of Illinois at Urbana Message-ID: NNTP-Posting-Host: sparc53.cs.uiuc.edu Keywords: gnat Date: 1994-10-05T18:42:19+00:00 List-Id: In my current project, I am using the GNAT Ada package and interfacing (pragma IMPORT) with the C language. I can do the interfaces well and send/receive variables, but I am not sure about how the language converts from ada types (integer, array, access, etc.) to C types (unsigned long, unsigned long long, pointers, etc.). Also, what about subtypes and enumerated types. I imagine it looks at the base class in the conversion. Are there any example programs out there that deal with this problem? If so, where are they? Thanks in advance, ______________________________________________________________ Michael McNett | Graduate Student | University of Illinois | mmcnett@uiuc |