Changeset 1863 for trunk/src/kmk/implicit.c
- Timestamp:
- Oct 14, 2008, 11:46:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/implicit.c
r903 r1863 66 66 67 67 68 #ifdef CONFIG_WITH_ALLOC_CACHES 69 struct alloccache idep_cache; 70 #endif 71 68 72 /* Struct idep captures information about implicit prerequisites 69 73 that come from implicit rules. */ … … 86 90 { 87 91 n = p->next; 92 #ifndef CONFIG_WITH_ALLOC_CACHES 88 93 free (p); 94 #else 95 alloccache_free (&idep_cache, p); 96 #endif 89 97 } 90 98 } … … 254 262 255 263 PATH_VAR (stem_str); /* @@ Need to get rid of stem, stemlen, etc. */ 264 265 #ifdef CONFIG_WITH_ALLOC_CACHES 266 if (!idep_cache.size) 267 alloccache_init (&idep_cache, sizeof(struct idep), "dep", NULL, NULL); 268 #endif 256 269 257 270 #ifndef NO_ARCHIVES … … 583 596 ; 584 597 598 #ifndef CONFIG_WITH_ALLOC_CACHES 585 599 *id_ptr = (struct idep *) 586 600 multi_glob ( … … 589 603 sizeof (struct idep), 590 604 1), sizeof (struct idep)); 605 #else 606 *id_ptr = (struct idep *) 607 multi_glob ( 608 parse_file_seq (&p2, 609 order_only ? '\0' : '|', 610 &idep_cache, 1), 611 &idep_cache); 612 #endif 591 613 592 614 /* @@ It would be nice to teach parse_file_seq or
Note:
See TracChangeset
for help on using the changeset viewer.