Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Of Standards and Inventions: A Cautionary Tale Message-ID: <1988Apr13.163235.420@utzoo.uucp> Organization: U of Toronto Zoology References: <10949@mimsy.UUCP> <1525@dataio.Data-IO.COM> Date: Wed, 13 Apr 88 16:32:35 GMT > #elif (1<<63) < 0 > #define int_size_in_bits 64 > ... > do the job, or may the preprocessor and compiler interpret int constants > differently? As I recall (my copy of the draft isn't handy), there is some room for different interpretation of compile-time operations. Furthermore, even ignoring that, there is another problem: the result of shifting beyond the available number of bits is implementation-defined (or possibly even undefined). -- "Noalias must go. This is | Henry Spencer @ U of Toronto Zoology non-negotiable." --DMR | {allegra,ihnp4,decvax,utai}!utzoo!henry