Changeset 1913 for trunk/src/kmk/strcache2.h
- Timestamp:
- Oct 22, 2008, 11:24:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/strcache2.h
r1912 r1913 49 49 struct strcache2_entry *next; /* Collision chain. */ 50 50 void *user; 51 unsigned int hash 1;51 unsigned int hash; 52 52 unsigned int length; 53 53 }; … … 102 102 const char *strcache2_add (struct strcache2 *cache, const char *str, unsigned int length); 103 103 const 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);104 const char *strcache2_add_hashed (struct strcache2 *cache, const char *str, 105 unsigned int length, unsigned int hash); 106 const char *strcache2_iadd_hashed (struct strcache2 *cache, const char *str, 107 unsigned int length, unsigned int hash); 108 108 const char *strcache2_lookup (struct strcache2 *cache, const char *str, unsigned int length); 109 109 const char *strcache2_ilookup (struct strcache2 *cache, const char *str, unsigned int length); … … 142 142 /* Get the first hash value for the string. */ 143 143 MY_INLINE unsigned int 144 strcache2_get_hash 1(struct strcache2 *cache, const char *str)144 strcache2_get_hash (struct strcache2 *cache, const char *str) 145 145 { 146 return strcache2_get_entry (cache, str)->hash 1;146 return strcache2_get_entry (cache, str)->hash; 147 147 } 148 148
Note:
See TracChangeset
for help on using the changeset viewer.