comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: Interfacing C unions in Ada
Date: Fri, 25 Jul 2014 17:20:22 +0300
Date: 2014-07-25T17:20:22+03:00	[thread overview]
Message-ID: <lqtp33$tng$2@speranza.aioe.org> (raw)
In-Reply-To: lqtnfn$pao$1@speranza.aioe.org

Victor Porton wrote:

> Please explain how to interface with C unions.
> 
> Discriminants are present in Ada but a missing in C. How to map these
> things to each other (a C record without a discriminant and an Ada
> record)?
> 
> Please explain. (I am writing an open source Ada library and helping me
> you help the community.)
> 
> Ada2012.

Oh, I've found:

pragma Unchecked_Union

-- 
Victor Porton - http://portonvictor.org

  reply	other threads:[~2014-07-25 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-25 13:52 Interfacing C unions in Ada Victor Porton
2014-07-25 14:20 ` Victor Porton [this message]
2014-07-26  3:55   ` Shark8
replies disabled

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