Include "hash-i.h".
authorMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 23 Apr 2013 14:23:54 +0000 (23:23 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 23 Apr 2013 14:23:54 +0000 (23:23 +0900)
(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.

name.c

diff --git a/name.c b/name.c
index da8b7d5..3f44b12 100644 (file)
--- a/name.c
+++ b/name.c
 #include <string.h>
 #include <stdlib.h>
 #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)