Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!wyse!mips!koblas From: koblas@mips.COM (David Koblas) Newsgroups: comp.sources.bugs Subject: Re: sc 6.1 - Allow ANSI pre-processor and read-only strings Message-ID: <16445@yoyodyne.mips.COM> Date: 2 Apr 89 19:34:50 GMT References: <137@titania.warwick.ac.uk> Reply-To: koblas@mips.COM (David Koblas) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 23 In article <137@titania.warwick.ac.uk> cudcv@warwick.ac.uk (Rob McMahon) writes: > >! #define ctl(x) ('x'&037) > >--- 65,71 ---- > >! #define ctl(x) ((x)&037) > Instead of doing this change there is a much simpler solution, which of course allows you to not make such a huge change to existing code. #ifdef __STDC___ # define ctl(x) (#x[0]&037) #else # define ctl(x) ('x'&037) #endif -- name : David Koblas uucp : {ames,decwrl}!mips!koblas place: MIPS Computers Systems domain: koblas@mips.com quote: "It was never ment to be a game, NEVER." -- Rollerball