Use a static perfect hash table for object-name lookup
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 20 Sep 2012 18:42:31 +0000 (14:42 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 2 Jan 2013 06:35:39 +0000 (00:35 -0600)
commitd58c31e6dcfd8c5e6fe3ead4a69216b059558223
treeab6353317504e63eb28ab9030b995b3b576067ae
parent7c0f79c5fe9db50b55112a1048a8f1c6a80e96fa
Use a static perfect hash table for object-name lookup

The hash table is generated by gperf.  For runtime element types, we use
a append-only linked list.

A bit clumsy, but I think I got it right.
src/Makefile.am
src/fcinit.c
src/fcint.h
src/fcname.c
src/fcobjs.c [new file with mode: 0644]
src/fcobjs.h [new file with mode: 0644]
src/fcobjshash.gperf.h [new file with mode: 0644]