From owner-cvs-all Tue Sep 10 5:53:37 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F53837B400; Tue, 10 Sep 2002 05:53:32 -0700 (PDT) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [212.135.138.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6FDC43E65; Tue, 10 Sep 2002 05:53:30 -0700 (PDT) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 17okWH-00024B-00 (Debian); Tue, 10 Sep 2002 13:53:29 +0100 Date: Tue, 10 Sep 2002 13:53:29 +0100 From: Tony Finch To: Juli Mallett Cc: John Baldwin , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/gen siglist.c Message-ID: <20020910135329.D14317@chiark.greenend.org.uk> References: <200209070814.g878EJkp040135@freefall.freebsd.org> <20020909195303.B752@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020909195303.B752@FreeBSD.org>; from jmallett@FreeBSD.org on Mon, Sep 09, 2002 at 07:53:03PM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 09, 2002 at 07:53:03PM -0700, Juli Mallett wrote: > John Baldwin wrote: > > On 07-Sep-2002 Juli Mallett wrote: > > > > > > Two arrays were born from the same seeds, both grew into complementary sets > > > of pointers to strings. These two arrays were fixed to the same size, but one > > > had an implicit zeroed trailer element, which was unused because the size was > > > used up by the ones before said zeroed trailer element. So the unused limb was > > > chopped off the over-sized-but-not-over-sized array, and everyone lived happily > > > ever after. > > > > What does this mean in practical terms? > > I removed a comma. A trailing comma does not imply an extra zero element in the initializer. For example, char a[] = {0}, b[] = {0,}; assert(sizeof(a) == sizeof(b)); Tony. -- f.a.n.finch http://dotat.at/ GERMAN BIGHT: NORTHWEST VEERING EAST 4 OR 5, OCCASIONALLY 6. RAIN OR THUNDERY SHOWERS. MODERATE OR GOOD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message