Ignore:
Timestamp:
Nov 26, 2002, 10:24:54 PM (23 years ago)
Author:
bird
Message:

Import of RELENG_4_7_0_RELEASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FREEBSD/src/kmk/hash.h

    r10 r24  
    11/*
    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.
    43 * Copyright (c) 1988, 1989 by Adam de Boor
    54 * Copyright (c) 1989 by Berkeley Softworks
     
    3736 * SUCH DAMAGE.
    3837 *
    39  *      @(#)hash.h      8.1 (Berkeley) 6/6/93
    40  * $FreeBSD: src/usr.bin/make/hash.h,v 1.12 2002/09/17 21:29:06 jmallett Exp $
     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 $
    4140 */
    4241
     
    5857                                         * entries associated with the same
    5958                                         * bucket. */
    60     void *            clientData;       /* Arbitrary piece of data associated
     59    ClientData        clientData;       /* Arbitrary piece of data associated
    6160                                         * with key. */
    6261    unsigned          namehash;         /* hash value of key */
     
    8887
    8988/*
    90  * void * Hash_GetValue(h)
     89 * ClientData Hash_GetValue(h)
    9190 *     Hash_Entry *h;
    9291 */
    9392
    94 #define Hash_GetValue(h) ((h)->clientData)
     93#define Hash_GetValue(h) ((h)->clientData)
    9594
    9695/*
     
    10099 */
    101100
    102 #define Hash_SetValue(h, val) ((h)->clientData = (void *) (val))
     101#define Hash_SetValue(h, val) ((h)->clientData = (ClientData) (val))
    103102
    104103/*
     
    108107#define Hash_Size(n)    (((n) + sizeof (int) - 1) / sizeof (int))
    109108
    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 *);
     109void Hash_InitTable __P((Hash_Table *, int));
     110void Hash_DeleteTable __P((Hash_Table *));
     111Hash_Entry *Hash_FindEntry __P((Hash_Table *, char *));
     112Hash_Entry *Hash_CreateEntry __P((Hash_Table *, char *, Boolean *));
     113void Hash_DeleteEntry __P((Hash_Table *, Hash_Entry *));
     114Hash_Entry *Hash_EnumFirst __P((Hash_Table *, Hash_Search *));
     115Hash_Entry *Hash_EnumNext __P((Hash_Search *));
    117116
    118117#endif /* _HASH */
Note: See TracChangeset for help on using the changeset viewer.