From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b471df880768a81e,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!skynet.be!newspost001!tjb!not-for-mail Date: Tue, 19 Oct 2004 16:10:26 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: importing a C header into Ada Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <417521b7$0$1427$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 33fb22e0.news.skynet.be X-Trace: 1098195383 news.skynet.be 1427 81.241.132.211:4830 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:5453 Date: 2004-10-19T16:10:26+02:00 List-Id: 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