Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: When do you use "if ( a = b )"? Message-ID: <15632@smoke.brl.mil> Date: 30 Mar 91 13:56:24 GMT References: <15617@smoke.brl.mil> <866JZ5w163w@phoenix.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <866JZ5w163w@phoenix.com> stanley@phoenix.com (John Stanley) writes: >> cursed Bourne for doing that. Eventually, the Bourne shell source >> was de-Algolized (by Dave Korn, if I recall correctly), so the version > You mean he, like, ran it through the preprocessor and, sorta, let >the preprocessor convert all the Algol to the real C? No, if you think about it you should see that preprocessing it via cpp would not have been desirable. I don't know exactly how he did it, but one possibility would have been to temporarily disable the # directives, except for the ones that #defined the Algolish macros, and preprocess just that, the reenable the remaining # directives. The way cpp works, probably some additional cleanup would have been necessary afterwards.