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,fd63afa4dc364b7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-26 17:41:53 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!howland.erols.net!newshub2.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Implementing C/C++ style #include... References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Tue, 27 Mar 2001 01:36:38 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 985656998 24.20.190.201 (Mon, 26 Mar 2001 17:36:38 PST) NNTP-Posting-Date: Mon, 26 Mar 2001 17:36:38 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:6095 Date: 2001-03-27T01:36:38+00:00 List-Id: >maintain different code configurations. Why not just tie the code differences >to one or two packages, and then keep different versions of them on the >different environments? >If that doesn't work for you (Yeah, I knew it wouldn't. It never does.) It works for Claw (150 KSLOC) on compilers from 4 different vendors. The current public release of one compiler, however, has a bug that requires a whole bunch of things to be moved from the private to the public part of a spec. Though that special version could be handled with #if, it would really be ugly. Presumably the next release of that compiler will fix the problem and we can again have a single version, so creating, and freezing, a special work-around version was probably less trouble than inserting all the #if's and duplicated code. In the early days the compilers differed on Convention names, but a specialized translator a la Pascal Obry's suggestion easily solved that. Having worked with C code that used the full power of the preprocessor, I agree that's a fate worse than death. #.#