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


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.

We do this in several places in gcc itself.


r~


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