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-27 07:07:26 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!news.idc.ad.jp!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <98m938$2iod0$1@ID-25716.news.dfncis.de> <99alrr$itf$1@nh.pace.co.uk> <99d5dj$fi4$1@nh.pace.co.uk> Subject: Re: Implementing C/C++ style #include... Message-ID: Date: Tue, 27 Mar 2001 15:01:09 GMT NNTP-Posting-Host: 127.0.0.1 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 985705269 127.0.0.1 (Tue, 27 Mar 2001 10:01:09 EST) NNTP-Posting-Date: Tue, 27 Mar 2001 10:01:09 EST Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:6115 Date: 2001-03-27T15:01:09+00:00 List-Id: In article , Dale Stanbrough says... > >Ole-Hjalmar Kristensen wrote: >> If someone wants something like the C preprocessor, then just use the >> C preprocessor. It works just as well (or bad) with Ada. > >No, it doesn't work with (some/all?) attributes. The preprocessor >really does understand -some- of C's syntax (or at least the low >level lexical details). On the occasions I've done it (usually config files, not Ada source), I've used "sed" or "awk". Those work just fine, and are available for just about every possible development platform. If you really want to get sexy, I suppose you could use m4, the GNU program specifically designed for preprocessing files, which is also available for just about every possible development platform. Of course technically you are also using a preprocessor if you use any of the special RCS/CVS/SCCS symbols to insert the file name or revision history into your sources. :-) --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com