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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d79d55198abf90d8 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: Conditional Compilation Date: 2000/09/19 Message-ID: <8q8mqv$aik1@news.cis.okstate.edu>#1/1 X-Deja-AN: 671798173 References: <7FEFA9E5E3B3C4A5.90418F4BE7D5AE58.48E094CF81EC6BD3@lp.airnews.net> <39C7C748.4A533989@netwood.net> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-09-19T00:00:00+00:00 List-Id: On Tue, 19 Sep 2000 20:06:32 +0000, E. Robert Tisdale wrote: >The C macro preprocessor wasn't originally part >of the C computer programming language. You sure? It was definetly a part of K&R C, and it would be almost impossible to build a C program without it. >but you can still use the C macro preprocessor >on Ada source files as long as the translation unit >is an acceptable Ada program. >Try it. It works. Maybe. cpp will emit errors about unterminted character constants, it will chop up C comments, and do other unfriendly things. It can work, but I'm not sure it's a great idea. >Now, professional programmers almost never write >programs in Ada, C, C++ or any other standard >computer programming language directly. >They usually use perl, the m4 macro preprocessor, >the sed stream editor or some combination of tools >to write programs for them from "prototype files" Not that I've seen. For example, GCC and GNAT use prototype files for machine descriptions, but for pretty much everything else it's just straight code. moc (QT's preprocessor) is about the only largescale example of that I've seen. -- David Starner - dstarner98@aasaa.ofe.org http/ftp: dvdeug.dhis.org And crawling, on the planet's face, some insects called the human race. Lost in space, lost in time, and meaning. -- RHPS