From owner-svn-src-all@freebsd.org Tue Aug 4 18:19:43 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C9019B2B2F for ; Tue, 4 Aug 2015 18:19:43 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D20A361 for ; Tue, 4 Aug 2015 18:19:42 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by obdeg2 with SMTP id eg2so13589035obd.0 for ; Tue, 04 Aug 2015 11:19:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=OS60yDEszMBhS0SjJ4poRap7Szr0Ic9tzSsLnN8sX48=; b=SmzAsigfqvST55z/pRnnCEyFLNvA+mUDAMRAO91lNz+NpkMYp1eTwPvsTUcS8Z1rFe UtXxPkxQE8KoDgronhblbKLIEQdQXLUrwEuZYRaQnToqPzIa34cnct5PwLJLMIRJzKEv Lj2agXEeHo1TSfoDhWbCrx6nKx1Lc8TDZ6Vcynba6RnxhilfztcYlXI8MKOLRxsi/tBY K5OwEew8eG6/akmGkCFiRhHPFICgEo2D28LFRys6PFUStITcfLJ3hZdcreJ5U7r4clDH SIbiMta2EevBe9j+d2pBIvV66MQaWIeQudFsj1zTPVX3bNfxjLoXkPW/si0nu5GHmq5C 0G9Q== X-Gm-Message-State: ALoCoQlGwyUT4B5rhSKh23BWDUh4woeTNwdEN1sOaTLTKg+KyRiZMzjr3NJm0JG6BDtI+wDviXto MIME-Version: 1.0 X-Received: by 10.182.86.72 with SMTP id n8mr4564603obz.9.1438712376362; Tue, 04 Aug 2015 11:19:36 -0700 (PDT) Received: by 10.76.50.84 with HTTP; Tue, 4 Aug 2015 11:19:36 -0700 (PDT) X-Originating-IP: [84.27.222.46] In-Reply-To: <20150731152253.Y1843@besplex.bde.org> References: <201507310328.t6V3S3LC087650@repo.freebsd.org> <20150731152253.Y1843@besplex.bde.org> Date: Tue, 4 Aug 2015 20:19:36 +0200 Message-ID: Subject: Re: svn commit: r286103 - head/share/man/man9 From: Ed Schouten To: Bruce Evans Cc: John-Mark Gurney , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 18:19:43 -0000 2015-07-31 8:21 GMT+02:00 Bruce Evans : > For gcc before 4.6, > the ifdef reduces to using __COUNTER__ as the second variable if > __COUNTER__ is supported, else nothing. So for the undocumented > subset of compilers that support __COUNTER__ all cases work, and > for the complementary subset no cases work (the macro is null). I was wondering: could we solve this by not using a typedef, but an external declaration: extern int __whatever[expr ? 1 : -1]; I think we can safely repeat this multiple times without triggering any compiler errors. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717