This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [RFC] [PATCH] Move cpplib out of the gcc directory


Paolo Bonzini <bonzini@gnu.org> writes:

> - I decided to move hashtable.c to libiberty (it looks useful enough).
>    This means K&R'ing it.

libiberty already has hashtab.c.  It seems confusing to have both
hashtab.c and hashtable.c.  The difference between them seems to be
that hashtab.c is generic, while hashtable.c is specialized to only
work on strings, and to omit deleting entries from the hash table.

If we are going to move hashtable.c to libiberty, perhaps we could
give it a different name, like hashstr.c or something like that.

Ian


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