From: Samuel Mize <smize@imagin.net>
Subject: Re: Keeping Ada and C data structures in sync
Date: 1999/05/24
Date: 1999-05-24T00:00:00+00:00 [thread overview]
Message-ID: <7icfr7$1r2e@news2.newsguy.com> (raw)
In-Reply-To: 7i515e$o06$1@nnrp1.deja.com
Robert Dewar <robert_dewar@my-dejanews.com> wrote:
> In article <37459F82.BB2DB17@bbn.com>,
> Fred Roeber <froeber@bbn.com> wrote:
...
>> Does anyone know of a good way to keep data structure
>> declarations consistent between C and Ada?
>
> Can you explain precisely what you want to do here, and why
> pragma Convention does not meet your needs?
I believe he wants to mechanically ensure that the data structure
definitions are equivalent in both languages, e.g. to prevent (or
at least detect) adding a field to a struct on the C side without
adding it to the record on the Ada side.
Certainly pragma Convention is much better than using rep clauses
to lay out your records, once you have language-level equivalence.
Best,
Sam Mize
--
Samuel Mize -- smize@imagin.net (home email) -- Team Ada
Fight Spam: see http://www.cauce.org/ \\\ Smert Spamonam
next prev parent reply other threads:[~1999-05-24 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-21 0:00 Keeping Ada and C data structures in sync Fred Roeber
1999-05-21 0:00 ` dennison
1999-05-21 0:00 ` Larry Kilgallen
1999-05-22 0:00 ` Robert Dewar
1999-05-24 0:00 ` Samuel Mize [this message]
1999-05-23 0:00 ` Aidan Skinner
1999-05-23 0:00 ` David Botton
1999-05-23 0:00 ` Bob
1999-05-24 0:00 ` Chris
1999-05-24 0:00 ` David Botton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox