mirror of https://github.com/bol-van/zapret/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
491 B
19 lines
491 B
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <ctype.h>
|
|
|
|
//#define HASH_BLOOM 20
|
|
#define HASH_NONFATAL_OOM 1
|
|
#define HASH_FUNCTION HASH_BER
|
|
#include "uthash.h"
|
|
|
|
typedef struct strpool {
|
|
char *str; /* key */
|
|
UT_hash_handle hh; /* makes this structure hashable */
|
|
} strpool;
|
|
|
|
void StrPoolDestroy(strpool **p);
|
|
bool StrPoolAddStr(strpool **pp,const char *s);
|
|
bool StrPoolAddStrLen(strpool **pp,const char *s,size_t slen);
|
|
bool StrPoolCheckStr(strpool *p,const char *s);
|
|
|