diff options
author | Simon Rettberg | 2017-04-21 16:48:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-21 16:48:09 +0200 |
commit | cab08b7e3fcbec061c12b842cf66a8e7d22b11d3 (patch) | |
tree | 82e450cf27b86d6315eaebe76a8dc7c291f12476 /mduptab.h | |
parent | Remove unused string matching helpers (diff) | |
download | ldadp-cab08b7e3fcbec061c12b842cf66a8e7d22b11d3.tar.gz ldadp-cab08b7e3fcbec061c12b842cf66a8e7d22b11d3.tar.xz ldadp-cab08b7e3fcbec061c12b842cf66a8e7d22b11d3.zip |
Delete some more unused files
Diffstat (limited to 'mduptab.h')
-rw-r--r-- | mduptab.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/mduptab.h b/mduptab.h deleted file mode 100644 index 5704e87..0000000 --- a/mduptab.h +++ /dev/null @@ -1,19 +0,0 @@ -/* save memory for constant strings by keeping a list of the ones that - * we already saw and not allocating memory for each new one. The only - * API is "add string and return offset". The offset is relative to the - * root of the pstorage_t. Will try to insert the string in the table. - * If the same string was already there, it will return offset of that - * string, otherwise it will insert a copy of the new string. */ - -#include "mstorage.h" - -typedef struct mduptable { - mstorage_t table,strings; - mstorage_t* Strings; -} mduptab_t; - -void mduptab_init(mduptab_t* t); -void mduptab_init_reuse(mduptab_t* t,mstorage_t* s); -long mduptab_add(mduptab_t* t,const char* s,size_t len); -long mduptab_adds(mduptab_t* t,const char* s); -void mduptab_reset(mduptab_t* t); |