projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
オペランドの最大長をOPDSIZE-1(=39)からOPDSIZE(=40)に修正
[YACASL2.git]
/
src
/
struct.c
diff --git
a/src/struct.c
b/src/struct.c
index
7f6fd41
..
31be1e6
100644
(file)
--- a/
src/struct.c
+++ b/
src/struct.c
@@
-45,13
+45,3
@@
WORD startptr = 0x0;
/* 実行終了番地 */
WORD endptr = 0x0;
-
-/* ハッシュ値を取得する */
-unsigned hash(const char *key, int size){
- unsigned hashval;
-
- for(hashval = 0; *key != '\0'; key++){
- hashval = *key + 31 * hashval;
- }
- return hashval % size;
-}