アセンブルの整理
[YACASL2.git] / include / hash.h
1 #ifndef YACASL2_HASH_INCLUDED
2 #define YACASL2_HASH_INCLUDED
3
4 /**
5  * ハッシュ共用体の型
6  */
7 typedef enum {
8     CHARS = 0,
9     INT = 1,
10 } UTYPE;
11
12 /**
13  * ハッシュ共用体
14  */
15 typedef struct {
16     UTYPE type;                 /**<ハッシュ値の元データのデータ型 */
17     union {
18         char *s;                /**<char型のデータ */
19         int i;                  /**<int型のデータ */
20     } val;                      /**<ハッシュ値の元データ */
21 } HKEY;
22
23 /**
24  * ハッシュ値を取得する
25  */
26 unsigned hash(int keyc, HKEY *keyv[], int tabsize);
27
28 #endif