VirtualBox

Changeset 1882 in kBuild for trunk


Ignore:
Timestamp:
Oct 17, 2008 2:06:50 AM (16 years ago)
Author:
bird
Message:

two strcache_add optimizations.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

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

    r1864 r1882  
    922922      memcpy (sp + dirlen, stem, stemlen);
    923923      sp[fullstemlen] = '\0';
     924#ifndef CONFIG_WITH_VALUE_LENGTH
    924925      file->stem = strcache_add (sp);
     926#else
     927      file->stem = strcache_add_len (sp, fullstemlen);
     928#endif
    925929    }
    926930
  • trunk/src/kmk/main.c

    r1879 r1882  
    27132713                      fatal (NILF, _(".DEFAULT_GOAL contains more than one target"));
    27142714
     2715#ifndef CONFIG_WITH_VALUE_LENGTH
    27152716                    default_goal_file = enter_file (strcache_add (ns->name));
     2717#else
     2718                    default_goal_file = enter_file (ns->name);
     2719#endif
    27162720
    27172721                    ns->name = 0; /* It was reused by enter_file(). */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette