Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: macros with parameters in MSC 5.0 Message-ID: <2631@haddock.ISC.COM> Date: 18 Feb 88 18:01:18 GMT References: <11879@brl-adm.ARPA> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 13 Summary: That bastard CTRL macro rears its ugly head again In article <11879@brl-adm.ARPA> jbaker@ee.UCLA.EDU (Joe Baker) writes: > #define ctl(c) ('c'&037) >... is not allowed in MSC5.0 Nor in ANSI C. >What is the Right Way to do this? Change the definition to "#define ctl(c) ((c)&037)" and write "ctl('P')" rather than "ctl(P)". You may also want to change the name, in case you overlook some references. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint