Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: You _CAN_ "stringize" tokens in (some) K&R pre-processors Message-ID: <15677@smoke.brl.mil> Date: 2 Apr 91 22:11:04 GMT References: <323@secola.Columbia.NCR.COM> <18148@crdgw1.crd.ge.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article <18148@crdgw1.crd.ge.com> volpe@camelback.crd.ge.com (Christopher R Volpe) writes: >I thought just about all K&R1 based compilers expanded formal arguments >within quotes, so the following would work: >#define STRINGIZE(x) "x" No, in fact K&R1 says that the argument must not be replaced within string literals in the replacement string. The behavior you cite is a long-standing bug in the Reiser CPP that was shipped with UNIX for many years.