Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!ames!amdahl!dgcad!dg-rtp!snaggle!barnettr From: barnettr@snaggle.rtp.dg.com (Richard Barnette) Newsgroups: comp.lang.c Subject: Re: You _CAN_ "stringize" tokens in (some) K&R pre-processors Message-ID: <1991Apr4.000715.6175@dg-rtp.dg.com> Date: 4 Apr 91 00:07:15 GMT References: <323@secola.Columbia.NCR.COM> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Distribution: comp.lang.c Organization: Data General Corporation, RTP, NC. Lines: 18 In article <323@secola.Columbia.NCR.COM> jmartin@secola.Columbia.NCR.COM (John V. Martinez) writes: > > I seem to recall a thread of discussion a couple of weeks ago >about how to "stringize" a token using the K&R C preprocessor (ANSI C >provides the # operator to do this.) Anyway, as I recall, the concensus >was that it couldn't be done. (At least, no one submitted a method, as >far as I know...) > Some preprocessors will accept #define stringize(A) "A" GNU C will do this if you say -traditional. The AT&T unix compilers tend to do this (but I reckon it depends on your system). Richard Barnette | Data General Corporation | obligatory (in)famous quote: (919) 248-6225 | RTP, NC 27709 | You wascal wabbit! Commercial Languages | 62 T.W. Alexander Drive | Wandering wizards won't barnettr@dg-rtp.dg.com | win! - /usr/lib/sendmail