projects
/
YACASL2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
コマンドハッシュ表を複数回作成していた構造バグを修正
[YACASL2.git]
/
include
/
hash.h
1
#ifndef YACASL2_HASH_INCLUDED
2
#define YACASL2_HASH_INCLUDED
3
4
/* ハッシュ共用体の型 */
5
typedef enum {
6
CHARS = 0,
7
INT = 1,
8
} UTYPE;
9
10
/* ハッシュ共用体 */
11
typedef struct {
12
UTYPE type;
13
union {
14
char *s;
15
int i;
16
} val;
17
} HKEY;
18
19
/* ハッシュ値を取得する */
20
unsigned hash(int keyc, HKEY *keyv[], int tabsize);
21
22
#endif