From: MORIOKA Tomohiko Date: Tue, 23 Apr 2013 14:23:54 +0000 (+0900) Subject: Include "hash-i.h". X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=58a34b4787ba6252d732e981ecb407c85ccb0d18;p=chise%2Fconcord.git Include "hash-i.h". (struct CONCORD_HASH_TABLE_ENTRY): Moved to hash-i.h. (struct CONCORD_HASH_TABLE): Ditto. (concord_make_hash_table): Move prototype to hash-i.h. (concord_destroy_hash_table): Ditto. (concord_hash_c_string): Ditto. --- diff --git a/name.c b/name.c index da8b7d5..3f44b12 100644 --- a/name.c +++ b/name.c @@ -19,22 +19,7 @@ #include #include #include "concord-name.h" - -struct CONCORD_HASH_TABLE_ENTRY -{ - void *key; - void *value; -}; - -struct CONCORD_HASH_TABLE -{ - size_t size; - CONCORD_HASH_TABLE_ENTRY *data; -}; - -CONCORD_HASH_TABLE* concord_make_hash_table (size_t size); -void concord_destroy_hash_table (CONCORD_HASH_TABLE* hash); -unsigned long concord_hash_c_string (const unsigned char *ptr); +#include "hash-i.h" CONCORD_HASH_TABLE* concord_make_hash_table (size_t size)