Changeset 1898 for trunk/src/kmk/read.c
- Timestamp:
- Oct 21, 2008, 3:39:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/read.c
r1867 r1898 1540 1540 for (d2 = suffix_file->deps; d2 != 0; d2 = d2->next) 1541 1541 { 1542 #ifndef CONFIG_WITH_ VALUE_LENGTH1542 #ifndef CONFIG_WITH_STRCACHE2 1543 1543 unsigned int l = strlen (dep_name (d2)); 1544 1544 #else 1545 unsigned int l = strcache _get_len (dep_name (d2));1545 unsigned int l = strcache2_get_len (&file_strcache, dep_name (d2)); 1546 1546 #endif 1547 1547 if (!strneq (name, dep_name (d2), l)) … … 2154 2154 2155 2155 /* Remove duplicate dependencies in CHAIN. */ 2156 #ifndef CONFIG_WITH_ VALUE_LENGTH2156 #ifndef CONFIG_WITH_STRCACHE2 2157 2157 2158 2158 static unsigned long … … 2185 2185 } 2186 2186 2187 #else /* CONFIG_WITH_ VALUE_LENGTH*/2187 #else /* CONFIG_WITH_STRCACHE2 */ 2188 2188 2189 2189 /* Exploit the fact that all names are in the string cache. This means equal … … 2196 2196 { 2197 2197 const char *name = dep_name ((struct dep const *) key); 2198 assert (strcache _iscached (name));2198 assert (strcache2_is_cached (&file_strcache, name)); 2199 2199 return (size_t) name / sizeof(void *); 2200 2200 } … … 2204 2204 { 2205 2205 const char *name = dep_name ((struct dep const *) key); 2206 return strcache _get_len (name);2206 return strcache2_get_len (&file_strcache, name); 2207 2207 } 2208 2208 … … 2217 2217 2218 2218 /* 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)); 2221 2221 assert (cmp == 0 || strcmp (dxname, dyname) != 0); 2222 2222 … … 2231 2231 } 2232 2232 2233 #endif /* CONFIG_WITH_ VALUE_LENGTH*/2233 #endif /* CONFIG_WITH_STRCACHE2 */ 2234 2234 2235 2235 void
Note:
See TracChangeset
for help on using the changeset viewer.