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/function.c

    r1847 r1863  
    514514  unsigned int idx;
    515515
     516#ifndef CONFIG_WITH_ALLOC_CACHES
    516517  chain = multi_glob (parse_file_seq
    517518                      (&line, '\0', sizeof (struct nameseq),
     
    521522                       0),
    522523                      sizeof (struct nameseq));
     524#else
     525  chain = multi_glob (parse_file_seq
     526                      (&line, '\0', &nameseq_cache,
     527                       /* We do not want parse_file_seq to strip `./'s.
     528                          That would break examples like:
     529                          $(patsubst ./%.c,obj/%.o,$(wildcard ./?*.c)).  */
     530                       0),
     531                      &nameseq_cache);
     532#endif
    523533
    524534  if (result == 0)
     
    535545
    536546      struct nameseq *next = chain->next;
     547#ifndef CONFIG_WITH_ALLOC_CACHES
    537548      free (chain);
     549#else
     550      alloccache_free (&nameseq_cache, chain);
     551#endif
    538552      chain = next;
    539553
Note: See TracChangeset for help on using the changeset viewer.