Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!leah!bingvaxu!vu0310 From: vu0310@bingvaxu.cc.binghamton.edu (R. Kym Horsell) Newsgroups: comp.lang.c Subject: Re: Preprocessor macro to quote its argument Message-ID: <3894@bingvaxu.cc.binghamton.edu> Date: 26 Aug 90 17:53:37 GMT References: <1112@mti.mti.com> <1114@mti.mti.com> <1990Aug20.012839.3545@zoo.toronto.edu> <11517@ogicse.ogi.edu> <1990Aug21.175138.24633@zoo.toronto.edu> <21594@grebyn.com> <3891@bingvaxu.cc.binghamton.edu> Reply-To: vu0310@bingvaxu.cc.binghamton.edu.cc.binghamton.edu (R. Kym Horsell) Organization: SUNY Binghamton, NY Lines: 14 In article peter@ficc.ferranti.com (Peter da Silva) writes: \\\ >If you define CTRL(c) ((*#c)^('\177'^'?')) it'll handle '^?' for delete as >well, at the expense of producing gibberish for CTRL(a). I think the original #define CTRL(c) ((*#c)-64) did this correctly anyway. It just makes me nervous that it also didn't handle lower-case; I came across a nasty bug once involving the programmer's misunderstanding of what CTRL(x) would match! -Kym Horsell