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, MSGID_RANDY 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: Ted Dennison Subject: Re: Nontrivial examples of C interface with Ada Date: 2000/05/24 Message-ID: <8ghbqc$ram$1@nnrp1.deja.com>#1/1 X-Deja-AN: 626804365 References: <9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com> X-Http-Proxy: 1.0 x54.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed May 24 19:50:42 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-05-24T00:00:00+00:00 List-Id: In article <9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com>, 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 I have a semi-thick level binding to the CLIPS expert system shell on my web site at http://www.telepath.com/dennison/Ted/AdaClips/AdaClips.html Its not a complete binding to CLIPS, but I did have to handle some tricky stuff in there. So together with the CLIPS reference, it ought to make for some good examples. "Semi-thick" is my term for my own favorite style for bindings. A "semi-thick" binding is one that abstracts away typical stupid C artifacts like pointer interfaces, return error codes, and null-termiated strings. That way the interface "feels" like Ada. But it doesn't abstract things so much that the C docs for the routine can't be used for the Ada bindings. As to how "well-done" it is, I can't really give an impartial opinion. But I've been writing Ada C bindings for over 11 years, so I at least *ought* to know what I'm doing. :-) -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.