From owner-svn-src-head@freebsd.org Tue Aug 4 18:19:43 2015 Return-Path: Delivered-To: svn-src-head@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 0BAEE9B2B2E for ; Tue, 4 Aug 2015 18:19:43 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) (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 D167860 for ; Tue, 4 Aug 2015 18:19:42 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by obbop1 with SMTP id op1so13575043obb.2 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=A4qoAjDMyhliKtcSJAKlqTPgagKhNXrbQ74si9Aw4PGVK+K+AJ/BouVy/3GUuNQTuP Ikd7PyUFds0mp8WkQqsT3kpmdQqCBNsUiO6wSVOAO/jcvDDWK5eWcT1oc73XFEOwkwn/ tgivm6yQotGhzD3QjE7eI/Dg8kO/MzXsnGE2XLrZvYvCIRBLXsoEGxeyw1TvAIi5+Z70 c0/XFYMX7M1YrtreRWCHSm5HIv+TBck93sjbegKer49V5VO2w4oEqRolHTxHfWT7cc8b 1far6QWdznlZZAS67nPzjvw2jrw8uL5gdvuasCxdlKMX+OAO7MrvY8K9sTsr8AnuS55+ Y8MA== X-Gm-Message-State: ALoCoQkpjXsAESJadTNkWIiiImkcSxAET9Mph+5hzmZ8G9dTtcz2b994Mc2tFJYkOOTlGies1fnF 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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