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: "Terry Westley" Subject: Re: Nontrivial examples of C interface with Ada Date: 2000/05/24 Message-ID: #1/1 X-Deja-AN: 626812499 References: <9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: news-admin@qwestip.net X-Trace: wdc-read-01.qwest.net 959189623 137.100.53.39 (Wed, 24 May 2000 11:33:43 MDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 24 May 2000 11:33:43 MDT Newsgroups: comp.lang.ada Date: 2000-05-24T00:00:00+00:00 List-Id: wrote in message news:9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com... > Is there an example of a well-done, nontrivial interface to a C > library readily available on the web? There are actually quite a few examples of nontrivial interfaces to C. Go to almost any Ada site (http://www.acm.org/sigada/, http://www.adapower.com, http://www.adahome.com) and look for Ada bindings. The one I wrote is an Ada binding to Tcl/Tk, see http://www.adatcl.com. Right now, it has two levels of binding: 1) a thin binding to the C objects and functions using predefined Ada types which match the C types, and 2) a slightly thicker binding which uses Ada types in place of C types and exceptions instead of return codes. I'm currently working on a thick binding which non-Tcl Ada programmers will find much easier to use. -- Terry J. Westley, Software Systems Engineering Supervisor Veridian Engineering, Calspan Operations twestley@buffalo.veridian.com http://www.veridian.com/ ------------------------------------------------------- Author of TASH, an Ada binding to Tcl/Tk. Visit the TASH web site at http://www.adatcl.com. -------------------------------------------------------