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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18d13d17c23e97a2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-06 00:32:14 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news2.near.net!yale!yale.edu!not-for-mail From: griest-tom@cs.yale.edu (Tom Griest) Newsgroups: comp.lang.ada Subject: Re: GNAT pragma IMPORT and type conversions Date: 5 Oct 1994 16:06:27 -0400 Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Message-ID: <36v103INN7m4@RA.DEPT.CS.YALE.EDU> References: NNTP-Posting-Host: dept-gw.cs.yale.edu Keywords: gnat Date: 1994-10-05T16:06:27-04:00 List-Id: In article mmcnett@sparc53.cs.uiuc.edu (mcnett michael david) writes: > >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 | > > >