From: Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
Subject: Re: Data structures
Date: Mon, 29 Jul 2002 15:46:50 +0200
Date: 2002-07-29T15:46:50+02:00 [thread overview]
Message-ID: <87it2yprxx.fsf@CERT.Uni-Stuttgart.DE> (raw)
In-Reply-To: ahr8cs$vd1$1@news.uni-stuttgart.de
Igor Gilitschenski <Gilitschenski@CERT.Uni-Stuttgart.DE> writes:
> I was looking for a tool, which is able to convert C data structures
> (from *.h files) into Ada data structures, but I wasn't successfull yet.
> Do you know where to find one or isn't there such a tool.
There's a tool called c2ada which might do what you want (it can't
most GCC extensions you'll find in typical GNU libc header files,
unfortunately).
Personally, I avoid importing structures from C. If I have to pass
data structures between C and Ada code, I use special get/set
subprograms (written in C or in Ada, depending on the language used
for the data structure). In my experience this approach is more
portable and less error-prone, but of course, it introduces a slight
overhead.
--
Florian Weimer Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT fax +49-711-685-5898
next prev parent reply other threads:[~2002-07-29 13:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-26 10:30 Data structures Igor Gilitschenski
2002-07-29 13:46 ` Florian Weimer [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-05-21 20:35 Data Structures ProLogic
2002-05-22 0:37 ` Jeffrey Creem
2002-05-22 11:30 ` Marc A. Criley
2002-05-22 14:16 ` Marin David Condic
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox