From: "Tarjei Tj�stheim Jensen" <tarjei.jensen@kvaerner.no>
Subject: Re: Accessing C macro constants from Ada95
Date: 1999/04/12
Date: 1999-04-12T00:00:00+00:00 [thread overview]
Message-ID: <7esfk1$k301@ftp.kvaerner.com> (raw)
In-Reply-To: 7eqoj2$r27$1@pegasus.csx.cam.ac.uk
Markus Kuhn wrote :
>Ada does indeed have nice facilities to access functions and variables
>in C object files, but what has been completely forgotten is that
>under C, traditionally a very significant part of the API comes
>in the form of numeric macro constants defined in *.h files. And
>Ada95 does not provide a portable way to get at these. Ada
>programmers should not have to write buggy and dangerous Perl
>hacks again and again to get access to the constants in C header
>files. That I think is the main reason why people are interested
>in POSIX.5, which provides all the necessary constants at least
>for this important API.
In order to do this you would need to implement a complete C preprocessor and
probably parts of the compiler as well.
It is completely unpractical compared to writing a C program that generates
the apropriate module(s) or perhaps one should link the Ada program with a C
module that provides the answers.
Greetings,
next prev 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-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
1999-04-13 0:00 ` Robert Dewar
1999-04-12 0:00 ` Robert Dewar
1999-04-12 0:00 ` Tarjei Tj�stheim Jensen [this message]
1999-04-12 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