Path: utzoo!attcan!uunet!husc6!cca!mirror!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Absolute size of 'short' Message-ID: <7122@haddock.ima.isc.com> Date: 7 Sep 88 17:39:03 GMT References: <1988Sep6.121051.21516@ateng.uucp> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 12 chip@ateng.uucp (Chip Salzenberg) writes: >According to karl@haddock.ima.isc.com (Karl Heuer): >>(One admitted flaw: the bitwidth must be specified directly in this scheme; >>you can't compute it at compile-time.) > >Perhaps you can [using token pasting] I thought of that, but it's not particularly useful, since it won't handle `#define COLORBITS (4+5)'. It could be done with m4, but cpp has no option to preevaluate the RHS. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint