comp.lang.ada
 help / color / mirror / Atom feed
From: "Julian Morrison" <julian@extropy.demon.co.uk>
Subject: Re: Questions: interfacing to C
Date: Tue, 02 Jan 2001 04:56:52 +0000
Date: 2001-01-02T04:56:52+00:00	[thread overview]
Message-ID: <978411405.6205.0.nnrp-04.9e98cc46@news.demon.co.uk> (raw)
In-Reply-To: 3A515730.D2106823@worldnet.att.net

"James Rogers" <jimmaureenrogers@worldnet.att.net> wrote:

> Your two questions seem to be summarized by: "How do I bind to a C
> pointer?"
> 
> The answer is to use the package Interfaces.C.Pointers. This package is
> described in section B.3.2 of the Ada Reference Manual.

I know the "pragma Import" converts some of the stuff (record to struct*)
but not if it converts returned pointers.

I also don't know if "pragma Convention (C, FOO)" allows access elements
within FOO to map straight onto equivalent pointers in the C struct
version.



  parent reply	other threads:[~2001-01-02  4:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-02  3:34 Questions: interfacing to C Julian Morrison
2001-01-02  4:19 ` James Rogers
2001-01-02  4:54   ` Robert Dewar
2001-01-02  5:15     ` Julian Morrison
2001-01-02  4:56   ` Julian Morrison [this message]
2001-01-02  4:32 ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox