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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d71460587da14d5b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-31 10:38:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Importing C structs? Date: Thu, 31 Jul 2003 12:40:24 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <1V1Wa.299$jp.55@newsread4.news.pas.earthlink.net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:41095 Date: 2003-07-31T12:40:24-05:00 List-Id: "Ching Bon Lam" wrote in message news:Xns93C98A38494B8cblamstudentutwenten@194.109.133.20... > overkill? i don't think so.. opaque_structure_def is defined in > Interfaces.C.Extensions (i-cexten.ads in gnat) as: That's GNAT-specific stuff; it's not part of Ada. It's best to stick with standard Ada, especially when doing so is easy (as in this case). Those of us that use other Ada compilers at least part of the time will be able to use your software if you do. One of the nice things about Ada 95 is that interfacing code like this can easily be written to work with any Ada compiler for the target. That was the whole idea behind Claw; the fact that only a few lines of Claw's code needs to be adjusted to particular compilers (mostly for bug workarounds) shows that Ada 95 code really can be portable. Randy.