comp.lang.ada
 help / color / mirror / Atom feed
* Help: Storage size
@ 1999-07-13  0:00 Adrian Hoe
  1999-07-13  0:00 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 9+ messages in thread
From: Adrian Hoe @ 1999-07-13  0:00 UTC (permalink / raw)


If I have a C code like this:

typedef unsigned short   CARD16;

and

typedef struct {
   CARD8     reqType;
   CARD16    length : 16;
} tReq;

How can the above struct (record) be implemented in Ada?

Where CARD16 is define as follow in Ada:

type CARD16 is new X.Unsigned_Short;


Can anyone please help?
--
Adrian BY, Hoe
--------------


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1999-07-16  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
1999-07-16  0:00           ` Adrian Hoe
1999-07-16  0:00       ` Adrian Hoe
1999-07-14  0:00     ` Keith Thompson

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