This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] spec functions
On Sat, Nov 02, 2002 at 01:57:01AM -0800, Zack Weinberg wrote:
> > I'm curious, why the macro? A NULL isn't all that ugly...
>
> Actually, what's with the linked list in the first place? If you just
> made this an array of name:function pairs that you scan directly, you
> wouldn't need the macro, you wouldn't need to initialize anything at
> runtime, you could make the table read-only data, and it wouldn't even
> be slower.
Yah, I could change that. The linked list is for the dynamically-registered
ones.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>