[RFA] convert blocks to dictionaries, phase 1, main part
Jim Blandy
jimb@redhat.com
Sun Sep 22 14:41:00 GMT 2002
Andrew Cagney <ac131313@ges.redhat.com> 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 (á là
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.
More information about the Gdb-patches
mailing list