From: sk <noname@myob.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Subject: Re: Detecting the OS type before clearing screen
Date: Tue, 25 Mar 2003 14:54:11 -0600
Date: 2003-03-25T14:54:11-06:00 [thread overview]
Message-ID: <mailman.20.1048625222.20696.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: e04419ef.0303241555.4627d1fd@posting.google.com
Hi,
> ... preprocessors are evil
I am going to take that statement with a grain of salt :-)
> ... <various renames schemes> ...
I like, and use, package renaming to establish different
implementations, but I do not think that the actual build
issue has been addressed.
At some point in the build, a decision has to be made
as to which implementation is required. Some form of
preprocessing is required.
Manually edit the renames every time ? No thanks.
Using make files ? Then either you somehow get "make" to
detect which version you require or edit the makefile
to set a variable.
Shell scripts ? Same as above.
I have found that a simple script similar to ...
#!/bin/bash
gnatprep -D WITHCURSES infile.ada outfile.adb
gnatmake outfile.adb
rm outfile.adb
... is a lot simpler to maintain than messing around with
make files or fancy "sed" scripts to properly set up the
necessary Ada "renames" statements.
I have yet to be convinced that one should refute the
preprocessor based upon the current discussions :-)
--
-------------------------------------------------
-- Merge vertically for real address
--
-- s n p @ t . o
-- k i e k c c m
-------------------------------------------------
next prev parent reply other threads:[~2003-03-25 20:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-24 23:55 Detecting the OS type before clearing screen Redy RAMAMONJISOA
2003-03-25 0:58 ` sk
2003-03-25 10:24 ` Samuel Tardieu
2003-03-25 11:19 ` sk
2003-03-25 12:47 ` Lutz Donnerhacke
2003-03-25 14:26 ` SIMON Claude
2003-03-25 14:33 ` Lutz Donnerhacke
2003-03-25 21:48 ` Wojtek Narczynski
2003-03-25 12:25 ` Wojtek Narczynski
2003-03-25 17:27 ` Warren W. Gay VE3WWG
2003-03-25 20:54 ` sk [this message]
2003-03-26 18:43 ` Randy Brukardt
2003-03-26 20:36 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox