Article View: comp.std.c
Article #1130Re: Macro sustitution inside quotes
From: Guy Harris
Date: Tue, 10 Apr 1990 17:44
Date: Tue, 10 Apr 1990 17:44
15 lines
841 bytes
841 bytes
>Whereas: > > #define string(s) "s" > >evaluates in the way you would expect. In other words, it evaluates to the string "s" i.e., a one-character string containing the letter "s"? That's what a reader of K&R would expect; too bad their expectations are dashed on systems like UNIX that use the Reiser preprocessor. (Reference: K&R I, Appendix A "C Reference Manual", p. 207: "Text inside a string or a character constant is not subject to replacement.")
Technical Details
Message-ID:
<3155@auspex.auspex.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guyReferences:
<1281@necisa.ho.necisa.oz> <12534@smoke.BRL.MIL> <1284@necisa.ho.necisa.oz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.std.c Subject: Re: Macro sustitution inside quotes Message-ID: <3155@auspex.auspex.com> Date: 10 Apr 90 17:44:14 GMT References: <1281@necisa.ho.necisa.oz> <12534@smoke.BRL.MIL> <1284@necisa.ho.necisa.oz> Organization: Auspex Systems, Santa Clara Lines: 15