From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bfa37a97c46a2a5 X-Google-Attributes: gid103376,public From: Samuel Mize Subject: Re: Keeping Ada and C data structures in sync Date: 1999/05/24 Message-ID: <7icfr7$1r2e@news2.newsguy.com>#1/1 X-Deja-AN: 481669840 References: <37459F82.BB2DB17@bbn.com> <7i515e$o06$1@nnrp1.deja.com> Organization: ImagiNet Communications, Ltd. User-Agent: tin/pre-1.4-981002 ("Phobia") (UNIX) (AIX/3-2) Newsgroups: comp.lang.ada Date: 1999-05-24T00:00:00+00:00 List-Id: Robert Dewar wrote: > In article <37459F82.BB2DB17@bbn.com>, > Fred Roeber 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