This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: use hashtab for pseudo op table


Richard Henderson <rth@redhat.com> writes:

> On Thu, May 05, 2005 at 11:16:19PM -0700, Zack Weinberg wrote:
>> Won't horrible things happen when it tries to resize the table, if you
>> do that?
>
> No, there are two hash functions.  The one you give at hash table 
> creation knows about the object stored in.  That's why you have to
> call the "*_with_hash" function directly.

Oh, right.  That trick doesn't make me very happy, because someone's
bound to forget.  In the GAS context, though, it might be safe enough
if it were all hidden behind wrappers.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]