comp.lang.ada
 help / color / mirror / Atom feed
From: aidan@skinner.demon.co.uk (Aidan Skinner)
Subject: Re: Accessing C macro constants from Ada95
Date: 1999/04/12
Date: 1999-04-12T00:00:00+00:00	[thread overview]
Message-ID: <slrn7h41up.1cm.aidan@skinner.demon.co.uk> (raw)
In-Reply-To: 7eqoj2$r27$1@pegasus.csx.cam.ac.uk

On 11 Apr 1999 18:10:42 GMT, Markus Kuhn <mgk25@cl.cam.ac.uk> wrote:

>Calling C library function from Ada95 sucks in one very
>significant way: The authors of the C Interface annex of the
>Ada95 standard have completely forgotten to generate a facility
>for accessing C macro constants. What would be necessary is that every

The way I (work around|hack) this is to run c2ada over the .h file and
then get only the functions I'm interested in bound properly in the
resulting .ad[bs].

OTOH this is very definately a hack (although it does mean you have
the start of a proper binding to whatever) and something that should have
been considered in the language design process. :(

- Aidan

-- 
http://www.skinner.demon.co.uk/
http://www.gla.ac.uk/Clubs/WebSoc/~9704075s
"I could always suspend a few hundred accounts and watch what happens"




  parent reply	other threads:[~1999-04-12  0:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-07  0:00 Linux Kernel in Ada. Repost Bruce MacDonald
1999-04-07  0:00 ` Matthew Heaney
1999-04-08  0:00 ` Jeffrey D. Cherry
1999-04-09  0:00   ` Corey Ashford
1999-04-09  0:00     ` Jeffrey D. Cherry
1999-04-09  0:00     ` me
1999-04-09  0:00       ` Larry Kilgallen
1999-04-09  0:00         ` David Starner
1999-04-09  0:00           ` Brian Rogoff
1999-04-11  0:00           ` Robert Dewar
1999-04-12  0:00         ` Hans N. Beck
1999-04-09  0:00       ` Tarjei Tj�stheim Jensen
1999-04-09  0:00         ` bill_
1999-04-10  0:00           ` Tarjei Tj�stheim Jensen
1999-04-10  0:00             ` Mich
1999-04-10  0:00               ` Tarjei Tj�stheim Jensen
1999-04-11  0:00                 ` Robert Dewar
1999-04-12  0:00                 ` OpenToken project announcement dennison
1999-04-11  0:00               ` Linux Kernel in Ada. Repost Robert Dewar
1999-04-10  0:00                 ` Kevin
1999-04-13  0:00                 ` Harry Tanovich
1999-04-13  0:00                   ` Robert Dewar
1999-04-11  0:00             ` Jerry van Dijk
1999-04-11  0:00           ` Robert Dewar
1999-04-10  0:00             ` mike
1999-04-11  0:00               ` Robert Dewar
1999-04-12  0:00                 ` Samuel Mize
1999-04-13  0:00                   ` Robert Dewar
1999-04-16  0:00                     ` Samuel Mize
1999-04-11  0:00             ` Accessing C macro constants from Ada95 Markus Kuhn
1999-04-11  0:00               ` Jerry van Dijk
1999-04-12  0:00               ` Robert Dewar
1999-04-12  0:00               ` Tarjei Tj�stheim Jensen
1999-04-12  0:00               ` Robert Dewar
1999-04-12  0:00               ` Robert Dewar
1999-04-13  0:00                 ` Markus Kuhn
1999-04-13  0:00                   ` Robert Dewar
1999-04-13  0:00                     ` dennison
1999-04-12  0:00               ` Aidan Skinner [this message]
1999-04-13  0:00                 ` Robert Dewar
1999-04-11  0:00           ` Linux Kernel in Ada. Repost Jerry van Dijk
1999-04-11  0:00             ` Robert Dewar
1999-04-14  0:00               ` Aidan Skinner
1999-04-11  0:00   ` Robert Dewar
1999-04-12  0:00     ` Bruce MacDonald
1999-05-03  0:00 ` Buz Cory
1999-05-03  0:00   ` Hans N. Beck
replies disabled

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