From a455deac4f59a815150cfac5690e3273292f0189 Mon Sep 17 00:00:00 2001 From: "Chris Hall (GMCH)" Date: Tue, 24 Nov 2009 20:39:59 +0000 Subject: 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 --- lib/memtypes.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/memtypes.c') 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" }, -- cgit v1.2.3