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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6413b417b806eb28 X-Google-Attributes: gid103376,public From: aidan@skinner.demon.co.uk (Aidan Skinner) Subject: Re: Accessing C macro constants from Ada95 Date: 1999/04/12 Message-ID: #1/1 X-Deja-AN: 465558267 X-NNTP-Posting-Host: skinner.demon.co.uk:158.152.76.219 References: <7eg43i$d3b$1@nnrp1.dejanews.com> <370CC730.4C6112DB@utech.net> <370D7007.2D3AD58B@rocketmail.com> <7el9so$geb@drn.newsguy.com> <7elrg5$egk2@ftp.kvaerner.com> <7emjk8$rp3@drn.newsguy.com> <7ep6uj$o97$1@nnrp1.dejanews.com> <7eqoj2$r27$1@pegasus.csx.cam.ac.uk> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 923941039 nnrp-07:27127 NO-IDENT skinner.demon.co.uk:158.152.76.219 Organization: skinner.demon.co.uk Newsgroups: comp.lang.ada Date: 1999-04-12T00:00:00+00:00 List-Id: On 11 Apr 1999 18:10:42 GMT, Markus Kuhn wrote: >Calling C library function from Ada95 sucks in one very >significant way: The authors of the C Interface annex of the >Ada95 standard have completely forgotten to generate a facility >for accessing C macro constants. What would be necessary is that every The way I (work around|hack) this is to run c2ada over the .h file and then get only the functions I'm interested in bound properly in the resulting .ad[bs]. OTOH this is very definately a hack (although it does mean you have the start of a proper binding to whatever) and something that should have been considered in the language design process. :( - Aidan -- http://www.skinner.demon.co.uk/ http://www.gla.ac.uk/Clubs/WebSoc/~9704075s "I could always suspend a few hundred accounts and watch what happens"