#include <string.h>
+#include "chise-name.h"
-typedef struct CHISE_HASH_TABLE_ENTRY
+struct CHISE_HASH_TABLE_ENTRY
{
void *key;
void *value;
-} CHISE_HASH_TABLE_ENTRY;
+};
-typedef struct CHISE_HASH_TABLE
+struct CHISE_HASH_TABLE
{
size_t size;
CHISE_HASH_TABLE_ENTRY *data;
-} CHISE_HASH_TABLE;
+};
CHISE_HASH_TABLE*
chise_make_hash_table (size_t size)
}
-typedef CHISE_HASH_TABLE CHISE_NAME_TABLE;
-typedef CHISE_HASH_TABLE_ENTRY CHISE_NAME_TABLE_ENTRY;
-
CHISE_NAME_TABLE*
chise_make_name_table ()
{
int
chise_name_table_put (CHISE_NAME_TABLE* table,
- unsigned char *key, void *value)
+ const unsigned char *key, void *value)
{
int i, index;
CHISE_NAME_TABLE_ENTRY* entry;
void *
chise_name_table_get (CHISE_NAME_TABLE* table,
- unsigned char *key)
+ const unsigned char *key)
{
int i, index;
CHISE_NAME_TABLE_ENTRY entry;