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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5108 invoked from network); 8 Jun 2020 15:21:31 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2020 15:21:31 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id C15C99CA67; Tue, 9 Jun 2020 01:21:28 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id B97EC9C5F8; Tue, 9 Jun 2020 01:21:13 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HCIfLNAt"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 2DDB79C5F8; Tue, 9 Jun 2020 01:21:12 +1000 (AEST) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) by minnie.tuhs.org (Postfix) with ESMTPS id 91FC39C5E5 for ; Tue, 9 Jun 2020 01:21:11 +1000 (AEST) Received: by mail-lj1-f172.google.com with SMTP id a9so17433208ljn.6 for ; Mon, 08 Jun 2020 08:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Znaytug8YR0R0iI9yoIqNv2aFqwcBDWeT1e1zWE0hRo=; b=HCIfLNAtQc3W1d2uuD0qSuql4NJJPnCt6z8MFwHZygaR6mnJOSvwEXSnFONAr+UIlj cxH6O2t0stA1y0iJYxGl5Iq1I0szvhleKwRfeFGo1mdZnzSHOrJY+4JYvAjYkCEpL9Y2 RyJLwINv1eqDwGyV7NIVXDUVanopRD3omFOkMTsniTSSAh3AWl5haIYjHEvTfL0LudmH Xq3y2imr9APZkfcV5iwUxTSGHMLJFGs5Mm7zCKH2PghzW79Btd7q3lu7BArDtcfGRYG5 HapCTTVRphFy15C6e1trqn+jk6VbsKxiE5ta3ppQGUT7ko02Efxxfg/F6BFTmXEa5cc5 scEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Znaytug8YR0R0iI9yoIqNv2aFqwcBDWeT1e1zWE0hRo=; b=ACj5B47HsD2hYrXpqT5F1/esOWZFNhTkvq/U676N/biwPqH5ZtaIN3Smngvh9Gdb+C tDyhlIwfI2v6me9M8TdD/RyYdVaQRw+PcRY74+HTd6nlBEzpcB1BsdNX5mAbGWaNA4iP 3M3mNf0t0qZMXW1xEDZfk8qL+zz3s/m7ncq678kJqvcBV9RvIsqEWovYdNtGQombDDya jF2/+1OeS00ob8KA2mKV9AHb3XO+Lna1eWtOB07UthgeuVar3MrWvjmIkvCsKSmYgTMY Qyt7YRv6+LwQ3ZnliEJR7Yv4Z4GVrkpsG1Nh5jTeDvv76yjtokFTgCqZ8NSHJqAoxBr+ 2U6w== X-Gm-Message-State: AOAM531o0DAAt63gm1BM0M1uCGolYeW6uUVHf8GvqaUrMUTLsSwGTX9T N/yqvyj1DCUIZhYdukypmCJr/0x2+6s6a7Lge4U= X-Google-Smtp-Source: ABdhPJxj3GAEOusjtSt3Ddry7FntLek/XhuADLuRrJzVOCdAcgeHOJ88Nj/1Nft/r0Dh48uTHCQJbIVpl8Q/E9ZoW9g= X-Received: by 2002:a2e:b814:: with SMTP id u20mr12228994ljo.261.1591629669661; Mon, 08 Jun 2020 08:21:09 -0700 (PDT) MIME-Version: 1.0 References: <202006062149.056LnNsb074899@tahoe.cs.Dartmouth.EDU> <20200608135619.GA22471@clarinet.employees.org> In-Reply-To: <20200608135619.GA22471@clarinet.employees.org> From: Richard Salz Date: Mon, 8 Jun 2020 11:20:58 -0400 Message-ID: To: Derek Fawcus Content-Type: multipart/alternative; boundary="00000000000013032d05a79429a6" 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: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000013032d05a79429a6 Content-Type: text/plain; charset="UTF-8" > But yeah, I'd prefer the if(0) type of elimination. > Some parts of OpenSSL do this, and it seems to work well across a pretty wide variety of platforms/toolchains. A really important benefit is that you get code syntax-checked as opposed to unused #ifdef branches rotting. A minor benefit is you don't have ifdef spaghetti around local variables, to avoid "xxx is not used" warnings. --00000000000013032d05a79429a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

But yeah, I'd prefer the if(0) type of elimination.

Some parts of OpenSSL do this, and it seems to work well a= cross a pretty wide variety of platforms/toolchains.

A really important be= nefit is that you get code syntax-checked as opposed to unused #ifdef branc= hes rotting.=C2=A0 A minor benefit is you don't have ifdef spaghetti ar= ound local variables, to avoid "xxx is not used" warnings.
<= div class=3D"gmail_quote">
--00000000000013032d05a79429a6--