summaryrefslogtreecommitdiffstats
path: root/lib/memtypes.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-11-24 20:39:59 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-11-24 20:39:59 +0000
commita455deac4f59a815150cfac5690e3273292f0189 (patch)
treec8a74c70fd00933fcc537b39e57226ab4abfa9ed /lib/memtypes.c
parent5d41cec800dc6100b8181b95a08f7803dac6eeb9 (diff)
downloadquagga-a455deac4f59a815150cfac5690e3273292f0189.tar.bz2
quagga-a455deac4f59a815150cfac5690e3273292f0189.tar.xz
Introduce lib/symtab.c & .h
These are two brand new files. They provide a "Symbol Table" data structure, which maps symbol "names" to symbol "values. (Inside the dta structure is a hash table.) There is also support for managing references to symbols, and the ability to visit all references to a symbol when its value is set or unset. Other files affected: lib/Makefile.am -- to add the new files. lib/memtypes.c -- additional memory types for symbol table stuff
Diffstat (limited to 'lib/memtypes.c')
-rw-r--r--lib/memtypes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/memtypes.c b/lib/memtypes.c
index e7269206..197fb88c 100644
--- a/lib/memtypes.c
+++ b/lib/memtypes.c
@@ -18,6 +18,10 @@ struct memory_list memory_list_lib[] =
{ MTYPE_STRVEC, "String vector" },
{ MTYPE_VECTOR, "Vector structure" },
{ MTYPE_VECTOR_BODY, "Vector body" },
+ { MTYPE_SYMBOL_TABLE, "Symbol Table structure" },
+ { MTYPE_SYMBOL_BASES, "Symbol Table chain bases" },
+ { MTYPE_SYMBOL, "Symbol" },
+ { MTYPE_SYMBOL_REF, "Symbol Reference" },
{ MTYPE_LINK_LIST, "Link List" },
{ MTYPE_LINK_NODE, "Link Node" },
{ MTYPE_THREAD, "Thread" },