- Timestamp:
- Oct 21, 2008, 5:12:16 AM (17 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/dir.c
r1897 r1901 264 264 ISTRING_HASH_1 (key->path_key, hash); 265 265 # else /* CONFIG_WITH_STRCACHE2 */ 266 hash = strcache2_get_ptr_hash (&file_ cache, key->path_key);266 hash = strcache2_get_ptr_hash (&file_strcache, key->path_key); 267 267 # endif /* CONFIG_WITH_STRCACHE2 */ 268 268 hash ^= ((unsigned int) key->dev << 4) ^ (unsigned int) key->ctime; … … 291 291 ISTRING_HASH_2 (key->path_key, hash); 292 292 # else /* CONFIG_WITH_STRCACHE2 */ 293 hash = strcache2_get_hash1 (&file_ cache, key->path_key);293 hash = strcache2_get_hash1 (&file_strcache, key->path_key); 294 294 # endif /* CONFIG_WITH_STRCACHE2 */ 295 295 hash ^= ((unsigned int) key->dev << 4) ^ (unsigned int) ~key->ctime; … … 383 383 return_ISTRING_HASH_1 (((const struct directory *) key)->name); 384 384 #else 385 return strcache2_get_ptr_hash (&file_ cache, ((const struct directory *) key)->name);385 return strcache2_get_ptr_hash (&file_strcache, ((const struct directory *) key)->name); 386 386 #endif 387 387 } … … 393 393 return_ISTRING_HASH_2 (((const struct directory *) key)->name); 394 394 #else 395 return strcache2_get_hash1 (&file_ cache, ((const struct directory *) key)->name);395 return strcache2_get_hash1 (&file_strcache, ((const struct directory *) key)->name); 396 396 #endif 397 397 } … … 439 439 return_ISTRING_HASH_1 (((struct dirfile const *) key)->name); 440 440 #else 441 return strcache2_get_ptr_hash (&file_ cache, ((struct dirfile const *) key)->name);441 return strcache2_get_ptr_hash (&file_strcache, ((struct dirfile const *) key)->name); 442 442 #endif 443 443 } … … 449 449 return_ISTRING_HASH_2 (((struct dirfile const *) key)->name); 450 450 #else 451 return strcache2_get_hash1 (&file_ cache, ((struct dirfile const *) key)->name);451 return strcache2_get_hash1 (&file_strcache, ((struct dirfile const *) key)->name); 452 452 #endif 453 453 } -
trunk/src/kmk/file.c
r1898 r1901 47 47 return_ISTRING_HASH_1 (((struct file const *) key)->hname); 48 48 #else /* CONFIG_WITH_STRCACHE2 */ 49 return strcache2_get_ptr_hash (&file_ cache, ((struct file const *) key)->hname);49 return strcache2_get_ptr_hash (&file_strcache, ((struct file const *) key)->hname); 50 50 #endif /* CONFIG_WITH_STRCACHE2 */ 51 51 } … … 57 57 return_ISTRING_HASH_2 (((struct file const *) key)->hname); 58 58 #else /* CONFIG_WITH_STRCACHE2 */ 59 return strcache2_get_ptr_hash (&file_ cache, ((struct file const *) key)->hname);59 return strcache2_get_ptr_hash (&file_strcache, ((struct file const *) key)->hname); 60 60 #endif /* CONFIG_WITH_STRCACHE2 */ 61 61 } … … 223 223 224 224 file_key.hname = name; 225 #ifndef CONFIG_WITH_STRCACHE2 225 226 file_slot = (struct file **) hash_find_slot (&files, &file_key); 227 #else /* CONFIG_WITH_STRCACHE2 */ 228 file_slot = (struct file **) hash_find_slot_strcached (&files, &file_key); 229 #endif /* CONFIG_WITH_STRCACHE2 */ 226 230 f = *file_slot; 227 231 if (! HASH_VACANT (f) && !f->double_colon) … … 299 303 /* Find where the newly renamed file will go in the hash. */ 300 304 file_key.hname = to_hname; 305 #ifndef CONFIG_WITH_STRCACHE2 301 306 file_slot = (struct file **) hash_find_slot (&files, &file_key); 307 #else /* CONFIG_WITH_STRCACHE2 */ 308 file_slot = (struct file **) hash_find_slot_strcached (&files, &file_key); 309 #endif /* CONFIG_WITH_STRCACHE2 */ 302 310 to_file = *file_slot; 303 311
Note:
See TracChangeset
for help on using the changeset viewer.