Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site vu44.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!vu44!jack From: jack@vu44.UUCP (Jack Jansen) Newsgroups: net.lang.c Subject: sizeof() and #if Message-ID: <582@vu44.UUCP> Date: Wed, 30-Jan-85 13:23:33 EST Article-I.D.: vu44.582 Posted: Wed Jan 30 13:23:33 1985 Date-Received: Sun, 3-Feb-85 02:06:20 EST Organization: VU Informatica, Amsterdam Lines: 18 Xref: seismo net.lang.c:4200 I while ago, I tried something that I was almost sure would fail (which it did), being: #if sizeof(struct foobar) != BLKSIZ I *know* why this fails, but still the most recent definition I saw of #if is #if which includes sizeof(). Does anyone know whether the new standard has changed this, or changed the definition of constant-expression not to include sizeof()? Or is everyone supposed to integrate the preprocessor into the compiler (yuck)? -- Jack Jansen, {seismo|philabs|decvax}!mcvax!vu44!jack or ...!vu44!htsa!jack Help! How do I make a cup of tea while working with an acoustic modem?