Ignore:
Timestamp:
Oct 22, 2008, 11:24:04 PM (17 years ago)
Author:
bird
Message:

strcache2: hash1 -> hash; -hash2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/strcache2.h

    r1912 r1913  
    4949    struct strcache2_entry *next;       /* Collision chain. */
    5050    void *user;
    51     unsigned int hash1;
     51    unsigned int hash;
    5252    unsigned int length;
    5353};
     
    102102const char *strcache2_add (struct strcache2 *cache, const char *str, unsigned int length);
    103103const char *strcache2_iadd (struct strcache2 *cache, const char *str, unsigned int length);
    104 const char *strcache2_add_hashed (struct strcache2 *cache, const char *str, unsigned int length,
    105                                   unsigned int hash1, unsigned int hash2);
    106 const char *strcache2_iadd_hashed (struct strcache2 *cache, const char *str, unsigned int length,
    107                                    unsigned int hash1, unsigned int hash2);
     104const char *strcache2_add_hashed (struct strcache2 *cache, const char *str,
     105                                  unsigned int length, unsigned int hash);
     106const char *strcache2_iadd_hashed (struct strcache2 *cache, const char *str,
     107                                   unsigned int length, unsigned int hash);
    108108const char *strcache2_lookup (struct strcache2 *cache, const char *str, unsigned int length);
    109109const char *strcache2_ilookup (struct strcache2 *cache, const char *str, unsigned int length);
     
    142142/* Get the first hash value for the string. */
    143143MY_INLINE unsigned int
    144 strcache2_get_hash1 (struct strcache2 *cache, const char *str)
     144strcache2_get_hash (struct strcache2 *cache, const char *str)
    145145{
    146   return strcache2_get_entry (cache, str)->hash1;
     146  return strcache2_get_entry (cache, str)->hash;
    147147}
    148148
Note: See TracChangeset for help on using the changeset viewer.