From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Trying to import a C function
Date: Mon, 10 Nov 2003 12:39:54 -0500
Date: 2003-11-10T12:39:54-05:00 [thread overview]
Message-ID: <a3Qrb.948$IK2.96570@news20.bellglobal.com> (raw)
In-Reply-To: <slrnbqmms4.pk.randhol+valid_for_reply_from_news@kiuk0156.chembio.ntnu.no>
Preben Randhol wrote:
> On 2003-11-06, Warren W. Gay VE3WWG <ve3wwg@cogeco.ca> wrote:
>
>>I find that it is generally easier, and more portable, to handle
>>macros and size differences in a C wrapper function. This
>>particularly applies to Linux, since so much changes there still.
>
>
> Do you have a code example of this? Would be nice to see.
>
> Preben
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.
There is a prominent link for APQ on my home page.
Hope that helps, Warren.
--
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg
next prev parent reply other threads:[~2003-11-10 17:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-06 10:07 Trying to import a C function Preben Randhol
2003-11-06 10:40 ` Lutz Donnerhacke
2003-11-06 16:05 ` Preben Randhol
2003-11-07 15:02 ` Adrian Knoth
2003-11-07 15:13 ` Preben Randhol
2003-11-10 14:39 ` Lutz Donnerhacke
2003-11-10 16:10 ` Preben Randhol
2003-11-10 16:45 ` Adrian Knoth
2003-11-06 14:48 ` Steve
2003-11-06 17:11 ` Warren W. Gay VE3WWG
2003-11-07 8:44 ` Preben Randhol
2003-11-10 17:39 ` Warren W. Gay VE3WWG [this message]
2003-11-11 8:26 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox