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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9023f3818c3c6a68 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-25 12:47:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!freenix!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Detecting the OS type before clearing screen Date: Tue, 25 Mar 2003 14:54:11 -0600 Organization: ENST, France Message-ID: References: Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1048625229 39313 137.194.161.2 (25 Mar 2003 20:47:09 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 25 Mar 2003 20:47:09 +0000 (UTC) To: "comp.lang.ada mail to news gateway" Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:35697 Date: 2003-03-25T14:54:11-06:00 Hi, > ... preprocessors are evil I am going to take that statement with a grain of salt :-) > ... ... 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 -------------------------------------------------