Changeset 24 for branches/FREEBSD/src/kmk/hash.h
- Timestamp:
- Nov 26, 2002, 10:24:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FREEBSD/src/kmk/hash.h
r10 r24 1 1 /* 2 * Copyright (c) 1988, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 2 * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. 4 3 * Copyright (c) 1988, 1989 by Adam de Boor 5 4 * Copyright (c) 1989 by Berkeley Softworks … … 37 36 * SUCH DAMAGE. 38 37 * 39 * @(#)hash.h 8.1 (Berkeley) 6/6/9340 * $FreeBSD: src/usr.bin/make/hash.h,v 1. 12 2002/09/17 21:29:06 jmallettExp $38 * from: @(#)hash.h 8.1 (Berkeley) 6/6/93 39 * $FreeBSD: src/usr.bin/make/hash.h,v 1.8 1999/08/28 01:03:30 peter Exp $ 41 40 */ 42 41 … … 58 57 * entries associated with the same 59 58 * bucket. */ 60 void *clientData; /* Arbitrary piece of data associated59 ClientData clientData; /* Arbitrary piece of data associated 61 60 * with key. */ 62 61 unsigned namehash; /* hash value of key */ … … 88 87 89 88 /* 90 * void *Hash_GetValue(h)89 * ClientData Hash_GetValue(h) 91 90 * Hash_Entry *h; 92 91 */ 93 92 94 #define 93 #define Hash_GetValue(h) ((h)->clientData) 95 94 96 95 /* … … 100 99 */ 101 100 102 #define Hash_SetValue(h, val) ((h)->clientData = (void *) (val))101 #define Hash_SetValue(h, val) ((h)->clientData = (ClientData) (val)) 103 102 104 103 /* … … 108 107 #define Hash_Size(n) (((n) + sizeof (int) - 1) / sizeof (int)) 109 108 110 void Hash_InitTable (Hash_Table *, int);111 void Hash_DeleteTable (Hash_Table *);112 Hash_Entry *Hash_FindEntry (Hash_Table *, char *);113 Hash_Entry *Hash_CreateEntry (Hash_Table *, char *, Boolean *);114 void Hash_DeleteEntry (Hash_Table *, Hash_Entry *);115 Hash_Entry *Hash_EnumFirst (Hash_Table *, Hash_Search *);116 Hash_Entry *Hash_EnumNext (Hash_Search *);109 void Hash_InitTable __P((Hash_Table *, int)); 110 void Hash_DeleteTable __P((Hash_Table *)); 111 Hash_Entry *Hash_FindEntry __P((Hash_Table *, char *)); 112 Hash_Entry *Hash_CreateEntry __P((Hash_Table *, char *, Boolean *)); 113 void Hash_DeleteEntry __P((Hash_Table *, Hash_Entry *)); 114 Hash_Entry *Hash_EnumFirst __P((Hash_Table *, Hash_Search *)); 115 Hash_Entry *Hash_EnumNext __P((Hash_Search *)); 117 116 118 117 #endif /* _HASH */
Note:
See TracChangeset
for help on using the changeset viewer.