[Freeciv-Dev] patch: hash.c (PR#318)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
This patch splits the hashing functionality currently in registry.c
into a separate module common/hash.[ch]. At the moment hash.c is
missing some important functionality in terms of being a general
hashing implementation (resizing the table and deleting elements),
but it should be straightforward to extend.
(Yes, maybe we should just use glib, but so long as we're not doing
so...)
(The purpose of this is to have cleaner code in registry.c, and
allow general hashing functionality elsewhere in the code, eg
tilespec.c (currently uses registry as hash table), and compact
id -> pointer mapping without id reuse.)
-- David
hash_sep.diff.gz
Description: GNU Zip compressed data
- [Freeciv-Dev] patch: hash.c (PR#318),
David Pfitzner <=
|
|