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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: .h header file in ObjectAda 8.2.2 source code? References: <54f7f0d4-29ef-4de0-94d8-8320e8df24e2@googlegroups.com> Date: Thu, 01 Aug 2013 11:03:42 -0400 Message-ID: <857gg5fo6p.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:3+sBEAnJ2AV19B0deaQgxi7JxBw= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 87b1a51fa78d7eef2f13012347 X-Received-Bytes: 1281 Xref: news.eternal-september.org comp.lang.ada:16636 Date: 2013-08-01T11:03:42-04:00 List-Id: Niklas Holsti writes: > On 13-07-19 18:36 , dd24fan wrote: >> #include "xyz.h" (this section has 40+ #includes of .h files) > > Ouch... lots of work, if you need all 40+ headers. The GNU Ada compiler > system has a mode where the compiler can translate a C header file into > Ada declarations -- perhaps this could help do the bulk work. That's 'g++ -fdump-ada-spec'; see the GNAT user guide section on "Generating Ada Bindings for C and C++ headers" -- -- Stephe