Changeset 1898 for trunk/src/kmk/read.c


Ignore:
Timestamp:
Oct 21, 2008, 3:39:22 AM (17 years ago)
Author:
bird
Message:

kmk: strcache_get_len -> strcache2_get_len

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/read.c

    r1867 r1898  
    15401540                    for (d2 = suffix_file->deps; d2 != 0; d2 = d2->next)
    15411541                      {
    1542 #ifndef CONFIG_WITH_VALUE_LENGTH
     1542#ifndef CONFIG_WITH_STRCACHE2
    15431543                        unsigned int l = strlen (dep_name (d2));
    15441544#else
    1545                         unsigned int l = strcache_get_len (dep_name (d2));
     1545                        unsigned int l = strcache2_get_len (&file_strcache, dep_name (d2));
    15461546#endif
    15471547                        if (!strneq (name, dep_name (d2), l))
     
    21542154
    21552155/* Remove duplicate dependencies in CHAIN.  */
    2156 #ifndef CONFIG_WITH_VALUE_LENGTH
     2156#ifndef CONFIG_WITH_STRCACHE2
    21572157
    21582158static unsigned long
     
    21852185}
    21862186
    2187 #else  /* CONFIG_WITH_VALUE_LENGTH */
     2187#else  /* CONFIG_WITH_STRCACHE2 */
    21882188
    21892189/* Exploit the fact that all names are in the string cache. This means equal
     
    21962196{
    21972197  const char *name = dep_name ((struct dep const *) key);
    2198   assert (strcache_iscached (name));
     2198  assert (strcache2_is_cached (&file_strcache, name));
    21992199  return (size_t) name / sizeof(void *);
    22002200}
     
    22042204{
    22052205  const char *name = dep_name ((struct dep const *) key);
    2206   return strcache_get_len (name);
     2206  return strcache2_get_len (&file_strcache, name);
    22072207}
    22082208
     
    22172217
    22182218  /* check preconds: both cached and the cache contains no duplicates. */
    2219   assert (strcache_iscached (dxname));
    2220   assert (strcache_iscached (dyname));
     2219  assert (strcache2_is_cached (&file_strcache, dxname));
     2220  assert (strcache2_is_cached (&file_strcache, dyname));
    22212221  assert (cmp == 0 || strcmp (dxname, dyname) != 0);
    22222222
     
    22312231}
    22322232
    2233 #endif /* CONFIG_WITH_VALUE_LENGTH */
     2233#endif /* CONFIG_WITH_STRCACHE2 */
    22342234
    22352235void
Note: See TracChangeset for help on using the changeset viewer.