From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12064 invoked by alias); 22 Sep 2002 21:41:50 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12052 invoked from network); 22 Sep 2002 21:41:48 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 22 Sep 2002 21:41:48 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id g8MLQxX21492; Sun, 22 Sep 2002 16:26:59 -0500 To: gdb-patches@sources.redhat.com Subject: Re: [RFA] convert blocks to dictionaries, phase 1, main part References: <3D87587B.9080304@ges.redhat.com> <3D877FA4.8050607@ges.redhat.com> From: Jim Blandy Date: Sun, 22 Sep 2002 14:41:00 -0000 In-Reply-To: <3D877FA4.8050607@ges.redhat.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2002-09/txt/msg00558.txt.bz2 Andrew Cagney writes: > The ALL_xxx_yyy() iterator can probably stay. Its an ``accepted'' > convention. I think the real reason these are acceptable is not because they're "established", or anything like that. It's because doing them without macros is a pain in the neck, no matter how you go about it. Functions that apply functions to each entry in the table (=E1 l=E0 Scheme's for-each) are very clumsy in C. Iterator objects need to be freed. I think the accessors like TYPE_NAME and SYMBOL_VALUE_ADDRESS are generally okay. Compiling with -g3 makes a big difference.