File: diff_libmaa_hash.c_timer

package info (click to toggle)
dict-gcide 0.44-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 59,496 kB
  • ctags: 2,052
  • sloc: asm: 53,717; fortran: 20,888; ansic: 8,030; sh: 1,441; lex: 1,342; makefile: 494; yacc: 443; perl: 235
file content (33 lines) | stat: -rw-r--r-- 986 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- dictd-1.4.8/libmaa/hash.c.orig	Sun Mar  1 12:08:37 1998
+++ dictd-1.4.8/libmaa/hash.c	Sat Apr 24 17:40:48 1999
@@ -33,7 +33,7 @@
 
 typedef struct bucket {
    const void    *key;
-   unsigned int  hash;
+   unsigned long hash;
    const void    *datum;
    struct bucket *next;
 } *bucketType;
@@ -104,7 +104,7 @@
    when an insertion is performed and the table is more than half full.
 
    The |hash| function should take a pointer to a |key| and return an
-   "unsigned int".  If |hash| is "NULL", then the |key| is assumed to be a
+   "unsigned long".  If |hash| is "NULL", then the |key| is assumed to be a
    pointer to a null-terminated string, and the function shown in
    \grind{hsh_string_hash} will be used for |hash| (the algorithm for this
    function is from \cite[p.~435]{faith:Aho88}).
@@ -176,7 +176,7 @@
 }
 
 static void _hsh_insert( hsh_HashTable table,
-			 unsigned int hash,
+			 unsigned long hash,
 			 const void *key,
 			 const void *datum )
 {