Changeset 1903 for trunk/src/kmk/strcache2.h
- Timestamp:
- Oct 21, 2008, 6:25:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/strcache2.h
r1900 r1903 95 95 const char *strcache2_add (struct strcache2 *cache, const char *str, unsigned int length); 96 96 const char *strcache2_iadd (struct strcache2 *cache, const char *str, unsigned int length); 97 #ifdef HAVE_CASE_INSENSITIVE_FS98 # define strcache2_add_file(cache, str, length) strcache2_iadd((cache), (str), (length))99 #else100 # define strcache2_add_file(cache, str, length) strcache2_add((cache), (str), (length))101 #endif102 97 const char *strcache2_add_hashed (struct strcache2 *cache, const char *str, unsigned int length, 103 98 unsigned int hash1, unsigned int hash2); 99 const char *strcache2_iadd_hashed (struct strcache2 *cache, const char *str, unsigned int length, 100 unsigned int hash1, unsigned int hash2); 104 101 const char *strcache2_lookup (struct strcache2 *cache, const char *str, unsigned int length); 102 const char *strcache2_ilookup (struct strcache2 *cache, const char *str, unsigned int length); 103 #ifdef HAVE_CASE_INSENSITIVE_FS 104 # define strcache2_add_file strcache2_iadd 105 # define strcache2_add_hashed_file strcache2_iadd_hashed 106 # define strcache2_lookup_file strcache2_ilookup 107 #else 108 # define strcache2_add_file strcache2_add 109 # define strcache2_add_hashed_file strcache2_add_hashed 110 # define strcache2_lookup_file strcache2_lookup 111 #endif 105 112 int strcache2_is_cached (struct strcache2 *cache, const char *str); 106 113 int strcache2_verify_entry (struct strcache2 *cache, const char *str);
Note:
See TracChangeset
for help on using the changeset viewer.