comp.lang.ada
 help / color / mirror / Atom feed
From: "Terry Westley" <twestley@buffalo.veridian.com>
Subject: Re: Nontrivial examples of C interface with Ada
Date: 2000/05/24
Date: 2000-05-24T00:00:00+00:00	[thread overview]
Message-ID: <XnUW4.31$XQ1.7961@wdc-read-01.qwest.net> (raw)
In-Reply-To: 9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com

<gressett@iglobal.net> 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.
-------------------------------------------------------







  parent reply	other threads:[~2000-05-24  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-23  0:00 Nontrivial examples of C interface with Ada gressett
2000-05-24  0:00 ` Ted Dennison
2000-05-24  0:00   ` Marin D. Condic
2000-05-25  0:00     ` Ted Dennison
2000-05-25  0:00       ` tmoran
2000-05-29  0:00       ` Geoff Bull
2000-05-25  0:00     ` tmoran
2000-05-25  0:00       ` Geoff Bull
2000-05-25  0:00         ` tmoran
2000-05-25  0:00       ` Ted Dennison
2000-05-25  0:00         ` tmoran
2000-05-25  0:00           ` Ted Dennison
2000-05-25  0:00             ` tmoran
2000-05-26  0:00         ` Julian Day
2000-05-26  0:00           ` Julian Day
2000-05-26  0:00       ` Marin D. Condic
2000-05-27  0:00         ` tmoran
2000-05-27  0:00           ` Marin D. Condic
2000-05-28  0:00             ` tmoran
2000-05-28  0:00               ` Marin D. Condic
2000-05-28  0:00                 ` tmoran
2000-05-28  0:00               ` Robert Dewar
2000-05-24  0:00 ` Marin D. Condic
2000-05-24  0:00   ` Scott Ingram
2000-05-24  0:00     ` Marin D. Condic
2000-05-24  0:00 ` Terry Westley [this message]
2000-05-24  0:00 ` tmoran
2000-05-24  0:00 ` David Emery
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox