projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
依存関係を整理
[YACASL2.git]
/
include
/
hash.h
diff --git
a/include/hash.h
b/include/hash.h
index
d438735
..
3c05972
100644
(file)
--- a/
include/hash.h
+++ b/
include/hash.h
@@
-1,15
+1,17
@@
#ifndef YACASL2_HASH_INCLUDED
#define YACASL2_HASH_INCLUDED
#ifndef YACASL2_HASH_INCLUDED
#define YACASL2_HASH_INCLUDED
-#include "cmem.h"
-
-
/* ハッシュ共用体の型
*/
+/**
+ * ハッシュ共用体の型
+ */
typedef enum {
CHARS = 0,
INT = 1,
} UTYPE;
typedef enum {
CHARS = 0,
INT = 1,
} UTYPE;
-/* ハッシュ共用体 */
+/**
+ * ハッシュ共用体
+ */
typedef struct {
UTYPE type;
union {
typedef struct {
UTYPE type;
union {
@@
-18,10
+20,9
@@
typedef struct {
} val;
} HKEY;
} val;
} HKEY;
-/* ハッシュ表のサイズを決めるため、引数の数値未満で最大の素数を返す */
-int hashtabsize(int size);
-
-/* ハッシュ値を取得する */
+/**
+ * ハッシュ値を取得する
+ */
unsigned hash(int keyc, HKEY *keyv[], int tabsize);
#endif
unsigned hash(int keyc, HKEY *keyv[], int tabsize);
#endif