Changeset 1863 for trunk/src/kmk/file.c


Ignore:
Timestamp:
Oct 14, 2008, 11:46:23 AM (17 years ago)
Author:
bird
Message:

kmk: Allocation caches for nameseq, dep and idep. next: variable.

File:
1 edited

Legend:

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

    r1857 r1863  
    524524parse_prereqs (char *p)
    525525{
     526#ifndef CONFIG_WITH_ALLOC_CACHES
    526527  struct dep *new = (struct dep *)
    527528    multi_glob (parse_file_seq (&p, '|', sizeof (struct dep), 1),
    528529                sizeof (struct dep));
     530#else
     531  struct dep *new = (struct dep *)
     532    multi_glob (parse_file_seq (&p, '|', &dep_cache, 1), &dep_cache);
     533#endif
    529534
    530535  if (*p)
     
    535540
    536541      ++p;
     542#ifndef CONFIG_WITH_ALLOC_CACHES
    537543      ood = (struct dep *)
    538544        multi_glob (parse_file_seq (&p, '\0', sizeof (struct dep), 1),
    539545                    sizeof (struct dep));
    540 
     546#else
     547      ood = (struct dep *)
     548        multi_glob (parse_file_seq (&p, '\0', &dep_cache, 1), &dep_cache);
     549#endif
    541550      if (! new)
    542551        new = ood;
Note: See TracChangeset for help on using the changeset viewer.