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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d79d55198abf90d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-24 22:24:19 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!yellow.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail Message-ID: <39CEE3C5.42E8D8E5@telepath.com> From: Ted Dennison X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Conditional Compilation References: <7FEFA9E5E3B3C4A5.90418F4BE7D5AE58.48E094CF81EC6BD3@lp.airnews.net> <8qauu3$7ei$1@nnrp1.deja.com> <8qlri4$gu2$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 25 Sep 2000 02:45:16 GMT NNTP-Posting-Host: 38.195.186.125 X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 969849916 38.195.186.125 (Sun, 24 Sep 2000 22:45:16 EDT) NNTP-Posting-Date: Sun, 24 Sep 2000 22:45:16 EDT Organization: Telepath Systems (telepath.com) Xref: supernews.google.com comp.lang.ada:789 Date: 2000-09-25T02:45:16+00:00 List-Id: Robert Dewar wrote: > In article <8qauu3$7ei$1@nnrp1.deja.com>, > Ted Dennison wrote: > > Of course the drawback to this approach is that both > > alternatives have to be compilable. That makes it suitable for > > debug messages (as implied above), but unsuitable for making a > > source file that handles multiple > > host configurations. > > Well in a way it is a big advantage that it all has to be > compilable. it is only too common to encouter a large C > file, full of conditional stuff based on say ten different > condition settings, and you just know that no one has > systematically done all 1024 compilations, and sure enough > you try a new combination, and the thing does not even compile, > let alone work. Ohhh yeah. I wasted a weekend once trying to get Wolfpack's Empire to compile on my NT box using gcc. It has a whole mess of conditional compilation code which assumes Windows means VC++ is being used. That combined with the macros that detect gcc and pull in other stuff just wreaked holy hell. A few hours of that is enough to convince anyone that the man who forbade macros from Ada was a genius. Of course it was no picnic getting it to work with the newer version of VC++ I had either. But that's another C gripe for another time. -- T.E.D. Home - mailto:dennison@telepath.com Work - mailto:dennison@ssd.fsi.com WWW - http://www.telepath.com/dennison/Ted/TED.html ICQ - 10545591