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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d3037f71d9d26da1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 09:22:12 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news2.telebyte.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!news2.euro.net!newsfeed.vmunix.org!newsfeed.hanau.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Preprocessor functionality equivalent ideas needed Date: Thu, 11 Dec 2003 17:59:23 +0100 Organization: AdaCL Message-ID: <1119642.aUOD1qvQyx@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1071163183 04 5183 fKNbGNtlLHTbSrTr 031211 17:19:43 X-Complaints-To: usenet-abuse@t-online.de X-ID: bE3L8iZUwed+nWOmPyzZwuP4ud+YnYG5Z+l8M1DNleJyqyxWacn8k4 User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3386 Date: 2003-12-11T17:59:23+01:00 List-Id: 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