From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: Importing C structs?
Date: Thu, 31 Jul 2003 10:27:15 +0100
Date: 2003-07-31T10:27:15+01:00 [thread overview]
Message-ID: <3f28e075$1@baen1673807.greenlnk.net> (raw)
In-Reply-To: pan.2003.07.31.07.52.36.94842.845@nospam.net
"Freejack" <freejack@nospam.net> wrote in message
news:pan.2003.07.31.07.52.36.94842.845@nospam.net...
> So I'm assuming I could just use an Ada enumerated type. (It compiles when
I
> do this, but it fails at runtime.)
Note that the first underlying value is '1' not '0' and you should still
add a 'pragma Convention' to it.
> The second hurdle I'll need to jump is creating a suitable Ada
> replacement for this buttload of defines that occur after the DBTYPE
> declaration.
>
> /*
> * DB access method and cursor operation values. Each value is an
operation
> * code to which additional bit flags are added.
> */
> #define DB_AFTER 1 /* c_put() */
[snip]
> #define DB_WRITELOCK 34 /* cursor() (internal) */
>
> But one step at a time.
>
> Hooking into glibc is cake, but this is something else entirely. Heh.
>
> Any suggestions?
Get a C->Ada converter! c2ada springs to mind
http://www.averstar.com/~stt/bindings/c2ada/c2ada.html
next prev parent reply other threads:[~2003-07-31 9:27 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-30 20:03 Importing C structs? Freejack
2003-07-30 20:52 ` chris
2003-07-30 21:26 ` Freejack
2003-07-30 23:50 ` tmoran
2003-07-31 10:53 ` chris
2003-08-04 14:33 ` Andreas Almroth
2003-08-04 15:16 ` Samuel Tardieu
2003-08-04 20:07 ` Randy Brukardt
2003-07-31 17:14 ` Warren W. Gay VE3WWG
2003-08-12 0:02 ` chris
2003-07-31 18:17 ` Xenos
2003-07-31 19:16 ` Simon Wright
2003-07-31 20:17 ` Samuel Tardieu
2003-07-31 20:40 ` Xenos
2003-07-30 23:14 ` Ching Bon Lam
2003-07-31 0:07 ` tmoran
2003-07-31 5:35 ` Matthew Heaney
2003-07-31 7:46 ` Freejack
2003-07-31 9:27 ` Martin Dowie [this message]
2003-07-31 21:41 ` Freejack
2003-08-01 7:39 ` Martin Dowie
2003-07-31 17:34 ` Matthew Heaney
2003-07-31 11:29 ` Ching Bon Lam
2003-07-31 16:59 ` Matthew Heaney
2003-07-31 17:32 ` Warren W. Gay VE3WWG
2003-07-31 17:13 ` Matthew Heaney
2003-07-31 17:40 ` Randy Brukardt
2003-07-31 5:21 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox