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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e289b5ceae0f39c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-28 13:52:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail From: Freejack Subject: Re: Binding to C Newsgroups: comp.lang.ada Message-ID: References: User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "chris" NNTP-Posting-Host: 12.245.85.50 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc01 1059425552 12.245.85.50 (Mon, 28 Jul 2003 20:52:32 GMT) NNTP-Posting-Date: Mon, 28 Jul 2003 20:52:32 GMT Organization: Comcast Online Date: Mon, 28 Jul 2003 20:52:32 GMT Xref: archiver1.google.com comp.lang.ada:40910 Date: 2003-07-28T20:52:32+00:00 List-Id: On Mon, 21 Jul 2003 14:59:30 -0400, chris wrote: > Hi, > > I came across the following in libjpeg... what should I map it to? > > const char* const* jpeg_message_table > > Also does anyone have any advice in general mapping to C. For the > jpeg_error_mgr struct, I mapped ptrs to functions to System.Address and > made the struct a record. Will this work, or will the corresponding > type of the struct have to be a System.Address? I'd like to add a question... Has anyone done any sort of specific tutorial on Interfaces.C or interfacing with C from Ada in general. This seems to be a question that get's asked a lot in this newsgroup. I know I could use some good helper docs (along with the LRM) on this particular subject. I'm currently trying to create a thin binding to the SleepyCat Berkely DB library, and I'm spending most of my time looking at other bindings to figure out what goes where. Some of the bindings are very good, but it is a bit frustrating at times. NiCad