Changeset 3140 for trunk/src/kmk/hash.h


Ignore:
Timestamp:
Mar 14, 2018, 10:28:10 PM (7 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

  • trunk/src/kmk/hash.h

    r2591 r3140  
    2929# undef __P
    3030# define __P(protos)    ()
    31 /* We can get away without defining `const' here only because in this file
    32    it is used only inside the prototype for `fnmatch', which is elided in
    33    non-ANSI C where `const' is problematical.  */
     31/* We can get away without defining 'const' here only because in this file
     32   it is used only inside the prototype for 'fnmatch', which is elided in
     33   non-ANSI C where 'const' is problematical.  */
    3434#endif /* C++ or ANSI C.  */
    3535
     
    4242{
    4343  void **ht_vec;
     44  hash_func_t ht_hash_1;        /* primary hash function */
     45  hash_func_t ht_hash_2;        /* secondary hash function */
     46  hash_cmp_func_t ht_compare;   /* comparison function */
    4447  unsigned long ht_size;        /* total number of slots (power of 2) */
    4548  unsigned long ht_capacity;    /* usable slots, limited by loading-factor */
     
    4952  unsigned long ht_lookups;     /* # of queries */
    5053  unsigned int ht_rehashes;     /* # of times we've expanded table */
    51   hash_func_t ht_hash_1;        /* primary hash function */
    52   hash_func_t ht_hash_2;        /* secondary hash function */
    53   hash_cmp_func_t ht_compare;   /* comparison function */
    5454#ifdef CONFIG_WITH_STRCACHE2
    5555  struct strcache2 *ht_strcache; /* the string cache pointer. */
Note: See TracChangeset for help on using the changeset viewer.