Ignore:
Timestamp:
Oct 24, 2008, 10:40:32 PM (17 years ago)
Author:
bird
Message:

kmk: moved suffixes_strcached to strcache.c and global scope.

File:
1 edited

Legend:

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

    r1932 r1933  
    8585      const char *name;
    8686      unsigned int len;
    87 #ifdef CONFIG_WITH_STRCACHE2
    88       static const char *suffixes_strcache = 0; /* XXX: make this global */
    89 
    90       if (!suffixes_strcache)
    91         suffixes_strcache = strcache_add_len (".SUFFIXES", sizeof (".SUFFIXES") - 1);
    92 #endif /* CONFIG_WITH_STRCACHE2 */
    9387
    9488#ifndef NO_ARCHIVES
     
    114108          unsigned int slen = strlen (dep_name (d));
    115109#else
    116       for (d = enter_file (suffixes_strcache)->deps; d ; d = d->next)
     110      for (d = enter_file (suffixes_strcached)->deps; d ; d = d->next)
    117111        {
    118112          unsigned int slen = strcache2_get_len (&file_strcache, dep_name (d));
Note: See TracChangeset for help on using the changeset viewer.