Article View: comp.std.c
Article #786Re: What is a constant expression
From: Norman Diamond
Date: Thu, 19 Oct 1989 01:39
Date: Thu, 19 Oct 1989 01:39
16 lines
1323 bytes
1323 bytes
In article <1219@crdos1.crd.ge.COM> davidsen@crdos1.UUCP (bill davidsen) writes:
> #define CNTL(c) ('c' & 037)
>While this work fine with pcc, the ANSI preprocessor doesn't expand it.
Another way around it is to edit all the calls to CNTL(c) to look like
CNTL('c'), which isn't too difficult a change. Then the macro depends
on neither Reiser nor ANSI stringizing, and the expression is obviously
constant. (Uh, obviously, obviously, hmm, can't find "obviously" in the
index to the draft standard, bet someone will bite us on this too.)
--
Norman Diamond, Sony Corp. (diamond%ws.sony.junet@uunet.uu.net seems to work)
Should the preceding opinions be caught or | James Bond asked his
killed, the sender will disavow all knowledge | ATT rep for a source
of their activities or whereabouts. | licence to "kill".
Technical Details
Message-ID:
<10972@riks.csl.sony.co.jp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamondReferences:
<1219@crdos1.crd.ge.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond From: diamond@csl.sony.co.jp (Norman Diamond) Newsgroups: comp.std.c Subject: Re: What is a constant expression Message-ID: <10972@riks.csl.sony.co.jp> Date: 19 Oct 89 01:39:47 GMT References: <1219@crdos1.crd.ge.COM> Reply-To: diamond@riks. (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 16