comp.lang.ada
 help / color / mirror / Atom feed
* importing a C header into Ada
@ 2004-10-19 14:10 Adrien Plisson
  2004-10-19 16:46 ` Simon Clubley
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Adrien Plisson @ 2004-10-19 14:10 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-21 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19 14:10 importing a C header into Ada Adrien Plisson
2004-10-19 16:46 ` 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

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