Ignore:
Timestamp:
Oct 21, 2008, 6:25:19 AM (17 years ago)
Author:
bird
Message:

strcache2: some cleanup.

File:
1 edited

Legend:

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

    r1900 r1903  
    9595const char *strcache2_add (struct strcache2 *cache, const char *str, unsigned int length);
    9696const char *strcache2_iadd (struct strcache2 *cache, const char *str, unsigned int length);
    97 #ifdef HAVE_CASE_INSENSITIVE_FS
    98 # define strcache2_add_file(cache, str, length) strcache2_iadd((cache), (str), (length))
    99 #else
    100 # define strcache2_add_file(cache, str, length) strcache2_add((cache), (str), (length))
    101 #endif
    10297const char *strcache2_add_hashed (struct strcache2 *cache, const char *str, unsigned int length,
    10398                                  unsigned int hash1, unsigned int hash2);
     99const char *strcache2_iadd_hashed (struct strcache2 *cache, const char *str, unsigned int length,
     100                                   unsigned int hash1, unsigned int hash2);
    104101const char *strcache2_lookup (struct strcache2 *cache, const char *str, unsigned int length);
     102const 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
    105112int strcache2_is_cached (struct strcache2 *cache, const char *str);
    106113int strcache2_verify_entry (struct strcache2 *cache, const char *str);
Note: See TracChangeset for help on using the changeset viewer.