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


Ignore:
Timestamp:
Oct 26, 2008, 11:48:35 PM (17 years ago)
Author:
bird
Message:

kmk: cleaning up some CONFIG_WITH_STRCACHE2 mess.

File:
1 edited

Legend:

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

    r1959 r1975  
    8383*/
    8484
    85 #ifndef KMK
     85#ifndef CONFIG_WITH_STRCACHE2
    8686struct file *
    8787lookup_file (const char *name)
    88 #else  /* KMK */
     88#else  /* CONFIG_WITH_STRCACHE2 */
    8989MY_INLINE struct file *
    9090lookup_file_common (const char *name, int cached)
    91 #endif /* KMK */
     91#endif /* CONFIG_WITH_STRCACHE2 */
    9292{
    9393  struct file *f;
     
    164164}
    165165
    166 #ifdef KMK
     166#ifdef CONFIG_WITH_STRCACHE2
    167167/* Given a name, return the struct file * for that name,
    168168  or nil if there is none. */
     
    182182  return lookup_file_common (name, 1 /* cached */);
    183183}
    184 #endif /* KMK */
     184#endif /* CONFIG_WITH_STRCACHE2 */
    185185
    186186
     
    582582      struct dep *new, *d1;
    583583      char *p;
    584 #ifdef CONFIG_WITH_VALUE_LENGTH
     584#ifdef CONFIG_WITH_STRCACHE2
    585585      unsigned int len;
    586586#endif
     
    669669          set_file_variables (f);
    670670
    671 #ifndef CONFIG_WITH_STRCACHE2
     671#if !defined (CONFIG_WITH_VALUE_LENGTH) || !defined (CONFIG_WITH_STRCACHE2)
    672672          p = variable_expand_for_file (d->name, f);
    673673#else
Note: See TracChangeset for help on using the changeset viewer.