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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-21 11:10:08 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!cyclone.bc.net!logbridge.uoregon.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: Re-Marketing Ada (was "With and use") Date: Fri, 21 Nov 2003 14:06:30 -0500 Organization: Michigan State University Message-ID: References: <3FB0B57D.6070906@noplace.com> <3FB22125.1040807@noplace.com> <3FB3751D.5090809@noplace.com> <3FB8B9BC.5040505@noplace.com> <3FBA1118.4060105@noplace.com> <0fxub.48425$bQ3.12107@nwrdny03.gnilink.net> <3FBB6527.4040702@noplace.com> <3FBCBA38.8040000@noplace.com> <067vb.13803$iT4.1718658@news20.bellglobal.com> <3FBE0ABA.4090801@noplace.com> NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:2832 Date: 2003-11-21T14:06:30-05:00 List-Id: "Warren W. Gay VE3WWG" wrote in message news:PPrvb.1623$NB4.26040@news20.bellglobal.com... > The one problem that I constantly have to hand craft a solution > to is the interfacing with C components on different platforms. > A value in a C header file for FreeBSD may or may not be the > same as the same on a Linux host. That same value (or type > size) may differ again on a Linux/Alpha host for another. Instead of a hint file, perhaps a better reproach would be a to have an api specification which declares the types and subroutines that you want to appear in the thin binding, and where in the C header file to get there definition? This way you can guarantee the resulting thin binding will have a consistent interface despite the changing representations.