Changeset 1857 for trunk/src/kmk/read.c
- Timestamp:
- Oct 13, 2008, 5:58:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/read.c
r1853 r1857 418 418 deps->next = read_makefiles; 419 419 read_makefiles = deps; 420 #ifndef KMK 420 421 deps->file = lookup_file (filename); 422 #else 423 deps->file = lookup_file_cached (filename); 424 #endif 421 425 if (deps->file == 0) 422 426 deps->file = enter_file (filename); … … 2302 2306 new entry if the file is a double-colon, which we don't want in 2303 2307 this situation. */ 2308 #ifndef KMK 2304 2309 f = lookup_file (name); 2305 2310 if (!f) 2306 2311 f = enter_file (strcache_add (name)); 2312 #else /* KMK */ 2313 /* XXX: this is probably already a cached string. */ 2314 fname = strcache_add (name); 2315 f = lookup_file_cached (fname); 2316 if (!f) 2317 f = enter_file (fname); 2318 #endif 2307 2319 else if (f->double_colon) 2308 2320 f = f->double_colon; … … 2645 2657 { 2646 2658 /* Double-colon. Make a new record even if there already is one. */ 2659 #ifndef KMK 2647 2660 f = lookup_file (name); 2661 #else /* KMK - the name is already in the cache, don't waste time. */ 2662 f = lookup_file_cached (name); 2663 #endif 2648 2664 2649 2665 /* Check for both : and :: rules. Check is_target so … … 2652 2668 fatal (flocp, 2653 2669 _("target file `%s' has both : and :: entries"), f->name); 2670 #ifndef KMK 2654 2671 f = enter_file (strcache_add (name)); 2672 #else /* KMK - the name is already in the cache, don't waste time. */ 2673 f = enter_file (name); 2674 #endif 2655 2675 /* If there was an existing entry and it was a double-colon entry, 2656 2676 enter_file will have returned a new one, making it the prev
Note:
See TracChangeset
for help on using the changeset viewer.