Article View: comp.sources.bugs
Article #2165Re: sc 6.1 - Allow ANSI pre-processor and read-only strings
From: David Koblas
Date: Sun, 02 Apr 1989 19:34
Date: Sun, 02 Apr 1989 19:34
23 lines
1078 bytes
1078 bytes
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
Technical Details
Message-ID:
<16445@yoyodyne.mips.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!wyse!mips!koblasReferences:
<137@titania.warwick.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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