Ignore:
Timestamp:
Oct 19, 2008, 11:30:02 PM (17 years ago)
Author:
bird
Message:

kmk: strcache2_add_file macro for wrapping case sensitive/insenstive hashing, avoiding a couple of checks a lots of inlined code in strcache2.

File:
1 edited

Legend:

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

    r1870 r1885  
    7474void strcache2_print_stats_all (const char *prefix);
    7575const char *strcache2_add (struct strcache2 *cache, const char *str, unsigned int length);
     76const char *strcache2_iadd (struct strcache2 *cache, const char *str, unsigned int length);
     77#ifdef HAVE_CASE_INSENSITIVE_FS
     78# define strcache2_add_file(cache, str, length) strcache2_iadd((cache), (str), (length))
     79#else
     80# define strcache2_add_file(cache, str, length) strcache2_add((cache), (str), (length))
     81#endif
    7682const char *strcache2_add_hashed (struct strcache2 *cache, const char *str, unsigned int length,
    7783                                  unsigned int hash1, unsigned int hash2);
Note: See TracChangeset for help on using the changeset viewer.