comp.lang.ada
 help / color / mirror / Atom feed
From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: importing a C header into Ada
Date: Tue, 19 Oct 2004 16:10:26 +0200
Date: 2004-10-19T16:10:26+02:00	[thread overview]
Message-ID: <417521b7$0$1427$ba620e4c@news.skynet.be> (raw)

hello,

maybe this topic has already been discussed here, but i can't find any 
information about that.

i have a specific hardware (an i/o board) that i have to use in a system i am 
developing. unfortunately, the manufacturer of this hardware knows nothing 
about Ada and so gives only a C header file and the corresponding .lib file to 
interface with the driver.

i know it is possible to import C functions into Ada through Pragma Import, but 
the header file is somehow big and i don't want to make any mistake while 
writing the functions definitions.

so, is there any piece of software which would automagically convert my C 
header into a valid Ada package specification ?

(i am using GNAT 3.15p on windows)

thanks in advance.

-- 
rien



             reply	other threads:[~2004-10-19 14:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-19 14:10 Adrien Plisson [this message]
2004-10-19 16:46 ` importing a C header into Ada Simon Clubley
2004-10-20  2:54   ` Steve
2004-10-19 17:14 ` Jean-Pierre Rosen
2004-10-20  7:06 ` Michael Paus
2004-10-21 15:52   ` Adrien Plisson
2004-10-21 17:03     ` Jean-Pierre Rosen
replies disabled

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