From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29043 invoked from network); 8 Jun 2020 13:56:52 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2020 13:56:52 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id DEDAD9CA6F; Mon, 8 Jun 2020 23:56:49 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id DFE689C5F8; Mon, 8 Jun 2020 23:56:23 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id C1BA59C5F8; Mon, 8 Jun 2020 23:56:20 +1000 (AEST) Received: from clarinet.employees.org (clarinet.employees.org [198.137.202.74]) by minnie.tuhs.org (Postfix) with ESMTPS id 8AD059C5E5 for ; Mon, 8 Jun 2020 23:56:20 +1000 (AEST) Received: by clarinet.employees.org (Postfix, from userid 1736) id E88054E11BB7; Mon, 8 Jun 2020 13:56:19 +0000 (UTC) Date: Mon, 8 Jun 2020 14:56:19 +0100 From: Derek Fawcus To: tuhs@tuhs.org Message-ID: <20200608135619.GA22471@clarinet.employees.org> References: <202006062149.056LnNsb074899@tahoe.cs.Dartmouth.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202006062149.056LnNsb074899@tahoe.cs.Dartmouth.EDU> Subject: Re: [TUHS] History of popularity of C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On Sat, Jun 06, 2020 at 05:49:23PM -0400, Doug McIlroy wrote: > Syntactically it occurs at top level completely out of sync with the > indentation and flow of text. Conversion to if would be a big win. Well, doesn't that rather depend upon how one indents it? As I recall, that freedom came with ANSI C. But yeah, I'd prefer the if(0) type of elimination. DF $ cc yes-no.c; ./a.out; cc -DYES yes-no.c; ./a.out; cat yes-no.c No Yes #include int main(void) { #ifdef YES puts("Yes"); #else puts("No"); #endif return 0; }