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,8b0d028e57f221d4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-11 00:26:46 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Trying to import a C function Date: Tue, 11 Nov 2003 08:26:46 +0000 (UTC) Organization: PVV Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1068539206 9341 129.241.83.82 (11 Nov 2003 08:26:46 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Tue, 11 Nov 2003 08:26:46 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:2325 Date: 2003-11-11T08:26:46+00:00 List-Id: On 2003-11-10, Warren W. Gay VE3WWG wrote: > Download my APQ project (see home page below), and look at the > process I used for adapting to MySQL. I run a combination of > scripts, and compile small C programs to generate Ada spec > packages from C macro constants. I also use a c_mysql.c module > to interface between APQ.MySQL.Client.adb and MySQL's C > libraries. This was necessary with MySQL, because some things > in MySQL require you to work with structure pointers to > members within. I didn't want to rely on structure padding > and offsets not to change etc. Thanks. Will have a look! Preben -- "Saving keystrokes is the job of the text editor, not the programming language."