Path: 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 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.