Article View: comp.mail.mush
Article #249CTRL macro
From: wed
Date: Thu, 26 Oct 1989 12:10
Date: Thu, 26 Oct 1989 12:10
10 lines
814 bytes
814 bytes
The original definition of CTRL does not work in ANSI compilers,
because parameters are not substituted in strings and character
constants. I made the following redefinition:
#define CTRL(c) (#c[0] & 037)
What should really be done is to change all the calls to use a
character argument (ie. CNTL('x')), but this is quick and dirty. Does
not generate the best code, though.
Technical Details
Message-ID:
<546F43626C@crdos1>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!crdos1.crd.ge.COM!wedShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!crdos1.crd.ge.COM!wed From: wed@crdos1.crd.ge.COM Newsgroups: comp.mail.mush Subject: CTRL macro Message-ID: <546F43626C@crdos1> Date: 26 Oct 89 12:10:30 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: davidsen@crdos1.crd.ge.com Organization: GE Corporate R&D Center Lines: 10