From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 3/6] builtin-help: make it possible to exclude some commands in list_commands() Date: Sun, 27 Jul 2008 21:29:07 -0700 Message-ID: <7vhcaaws18.fsf@gitster.siamese.dyndns.org> References: <5a003a0e20d0942c946680e4eade8e9d19f0036b.1217207602.git.vmiklos@frugalware.org> <9cc2813166c8b20ffb411c3a28ad86665e60033b.1217207602.git.vmiklos@frugalware.org> <7vr69ex00x.fsf@gitster.siamese.dyndns.org> <7vljzmwvww.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Vajna , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Mon Jul 28 06:30:26 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KNKNE-0000KS-UJ for gcvg-git-2@gmane.org; Mon, 28 Jul 2008 06:30:17 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751052AbYG1E3Q (ORCPT ); Mon, 28 Jul 2008 00:29:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751168AbYG1E3Q (ORCPT ); Mon, 28 Jul 2008 00:29:16 -0400 Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:52173 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750986AbYG1E3Q (ORCPT ); Mon, 28 Jul 2008 00:29:16 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id D2C273FBC2; Mon, 28 Jul 2008 00:29:14 -0400 (EDT) Received: from pobox.com (ip68-225-240-211.oc.oc.cox.net [68.225.240.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id AAE613FBC1; Mon, 28 Jul 2008 00:29:10 -0400 (EDT) In-Reply-To: <7vljzmwvww.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Sun, 27 Jul 2008 20:05:19 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: BC192A44-5C5D-11DD-8731-3113EBD4C077-77302942!a-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > Johannes Schindelin writes: > >>> > +struct cmdnames { >>> > + int alloc; >>> > + int cnt; >>> > + struct cmdname { >>> > + size_t len; >>> > + char name[1]; >>> > + } **names; >>> > +}; >>> >>> I thought we do this kind of thing using FLEX_ARRAY macro. Is there any >>> reason its use is not appropriate here? >> >> I think that came up in the previous review round: the "name" member _is_ >> NUL-terminated, but could have a ".exe" suffix. The "len" member has the >> length excluding ".exe". > > Sorry, but I do understand what you are trying to explain. Yuck, stupid typo; s/do/do not/.