importing a C header into Ada
From: Adrien Plisson (aplisson-news_at_stochastique.net)
Date: 10/19/04
- Next message: Matthew Heaney: "Re: Idiom for a class and an object in Ada"
- Previous message: Jacob Sparre Andersen: "[GtkAda] Gdk.RGB.Draw_Gray_Image?"
- Next in thread: Simon Clubley: "Re: importing a C header into Ada"
- Reply: Simon Clubley: "Re: importing a C header into Ada"
- Reply: Jean-Pierre Rosen: "Re: importing a C header into Ada"
- Reply: Michael Paus: "Re: importing a C header into Ada"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 19 Oct 2004 16:10:26 +0200
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
- Next message: Matthew Heaney: "Re: Idiom for a class and an object in Ada"
- Previous message: Jacob Sparre Andersen: "[GtkAda] Gdk.RGB.Draw_Gray_Image?"
- Next in thread: Simon Clubley: "Re: importing a C header into Ada"
- Reply: Simon Clubley: "Re: importing a C header into Ada"
- Reply: Jean-Pierre Rosen: "Re: importing a C header into Ada"
- Reply: Michael Paus: "Re: importing a C header into Ada"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|