comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Preprocessor functionality equivalent ideas needed
Date: Thu, 11 Dec 2003 17:59:23 +0100
Date: 2003-12-11T17:59:23+01:00	[thread overview]
Message-ID: <1119642.aUOD1qvQyx@linux1.krischik.com> (raw)
In-Reply-To: Hpp3r9.6L0@news.boeing.com

Greg Milford wrote:

> Hello
> 
> I checked the FAQ for this group and did not get an answer to this.  I
> know Ada does not have a preprocessor, so how should I go about
> maintaining changes to a common code base that needs to be built under two
> different configurations?
> 
> Am I left with using Global variables or has a better method been used?  I
> am new to Ada so be kind :)

Some compilers do provide a preprocessor. GNAT for expample. Differenz to C
ist that GNAT writes the file to the disk. Well an extra file to take up
space but very handy when it comes to debugging.

Also, you can distribute the preprocessed file to those ada users without.

If you don't use GNAT you might want to take a look at AdaCL which comes
with a Text search an replace Library powerfull enough to convert normal
booch components into booch components for indefinite elements.

Last not least: Most c compiler can be told to just do the preprocessing and
then output there results into a file.

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://adacl.sourceforge.net




  parent reply	other threads:[~2003-12-11 16:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 20:04 Preprocessor functionality equivalent ideas needed Greg Milford
2003-12-10 21:41 ` Ludovic Brenta
2003-12-11 17:12   ` sed and perl - yuck [Was Re: Preprocessor functionality equivalent ideas needed] Martin Krischik
2003-12-16  0:40     ` Waldek Hebisch
2003-12-16 20:52       ` Martin Krischik
2003-12-10 22:29 ` Preprocessor functionality equivalent ideas needed Georg Bauhaus
2003-12-12  5:52   ` Simon Wright
2003-12-11  1:07 ` Jeffrey Carter
2003-12-11 13:34   ` Marin David Condic
2003-12-11 17:49     ` Jeffrey Carter
2003-12-11  5:39 ` Steve
2003-12-11 16:59 ` Martin Krischik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-11 12:52 Lionel.DRAGHI
2003-12-11 15:51 Lionel.DRAGHI
replies disabled

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