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,d1533431e7e9d2eb X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: Nontrivial examples of C interface with Ada Date: 2000/05/24 Message-ID: <392C1898.E41F1C@quadruscorp.com>#1/1 X-Deja-AN: 626749225 Content-Transfer-Encoding: 7bit References: <9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 24 May 2000 15:02:55 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-05-24T15:02:55+00:00 List-Id: gressett@iglobal.net wrote: > > Is there an example of a well-done, nontrivial interface to a C > library readily available on the web? Examples of communication with > C things defined like > The Win32ada binding to the Win32api is a major example of Ada bindings to C stuff. It comes with the GNAT compiler and is probably available from lots of other sources as well. (I think Aonix ships with it too, but I have not looked at that product in a while.) I personally find it a pain to use because of the large variety of types for the same things, the constant use of error flags instead of enumerated types and all the parameters are so C-ish that it doesn't fit in with The Ada Way of thinking. (Some of this is just because the Win32api is organically grown rather than engineered.) I'd prefer to see a "thick" binding that simply hid all of the conversions, error flags, etc. so that you had something that looked like Ada rather than C-Written-In-Ada. But I suppose there is a need for the thin binding to exist. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================