comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Help: Storage size
Date: 1999/07/14
Date: 1999-07-14T00:00:00+00:00	[thread overview]
Message-ID: <x7vyagjdmsl.fsf@pogner.moho> (raw)
In-Reply-To: 7mh556$7ue$1@nnrp1.deja.com

Adrian Hoe <byhoe@my-deja.com> writes:

> This method gives the most assurance in plain Ada context. But, what
> if the intention to interface from Ada to the original (assumed) C's
> struct? Is this method applicable in this context (Interfacing to
> C)?

If you are interfacing to C then you should definitely use the types
in Interfaces.C. But I thought you said earlier that you had :16 in a
struct in case the platform's unsigned_short wasn't 16 bits???

You really need to go back to see how CARD16 is defined, I think.

IIRC, you are looking at Xlib stuff -- almost certainly this will be
in terms of C types. X protocol stuff, now that's different ..

In X, you're much more likely to have portability trouble with long,
in my experience. Also endianness.

Do you really have to implement your own bindings? I'm sure there are
some free ones out there .. try adahome ..




  reply	other threads:[~1999-07-14  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-13  0:00 Help: Storage size Adrian Hoe
1999-07-13  0:00 ` David C. Hoos, Sr.
1999-07-13  0:00   ` Adrian Hoe
1999-07-13  0:00     ` David C. Hoos, Sr.
1999-07-14  0:00       ` Adrian Hoe
1999-07-14  0:00         ` Simon Wright [this message]
1999-07-16  0:00           ` Adrian Hoe
1999-07-16  0:00       ` Adrian Hoe
1999-07-14  0:00     ` Keith Thompson
replies disabled

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