comp.lang.ada
 help / color / mirror / Atom feed
From: aidan@skinner.demon.co.uk (Aidan Skinner)
Subject: Binding a type to a union.
Date: 1999/11/23
Date: 1999-11-23T00:00:00+00:00	[thread overview]
Message-ID: <slrn83jvkm.1mn.aidan@skinner.demon.co.uk> (raw)

Can anybody tell me the correct way to give an Ada representation of a
C union contained in a structure?

Eg given a declaration in C of:
   
struct foo
 {

   union
   {
     struct
     {
       int x;
     } foo

     struct
     {
       char x;
       some_enum_type y;
     } bar

   } foo_bar
 }

What's the correct way of doing this given that x needs to be
public?

- Aidan
-- 
"I say we just bury him and eat dessert"
http://www.skinner.demon.co.uk/aidan/
OpenPGP Key Fingerprint: 9858 33E6 C755 7D34 B5C5  316D 9274 1343 FBE6 99D9




             reply	other threads:[~1999-11-23  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-23  0:00 Aidan Skinner [this message]
1999-11-22  0:00 ` Binding a type to a union David Botton
  -- strict thread matches above, loose matches on Subject: below --
1999-11-26  0:00 Robert C. Leif, Ph.D.
1999-11-28  0:00 ` Robert Dewar
1999-11-28  0:00   ` Vladimir Olensky
1999-12-01  0:00     ` Robert Dewar
1999-12-01  0:00     ` Robert Dewar
1999-11-23  0:00 Tom_Hargraves
1999-11-23  0:00 ` Matthew Heaney
1999-11-23  0:00   ` David Botton
1999-11-24  0:00     ` Ted Dennison
1999-11-25  0:00       ` Robert Dewar
1999-11-23  0:00   ` Robert Dewar
1999-11-24  0:00     ` Aidan Skinner
1999-11-24  0:00     ` Larry Kilgallen
1999-11-23  0:00       ` Tom Hargraves
1999-11-24  0:00         ` tmoran
1999-11-25  0:00         ` Robert Dewar
1999-11-25  0:00       ` Robert Dewar
1999-11-25  0:00         ` Larry Kilgallen
1999-11-25  0:00           ` Ed Falis
1999-11-25  0:00             ` Larry Kilgallen
1999-11-25  0:00               ` Robert Dewar
1999-11-29  0:00         ` Ted Dennison
1999-11-23  0:00 ` Robert Dewar
replies disabled

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