Ignore:
Timestamp:
Oct 9, 2008, 7:36:19 AM (17 years ago)
Author:
bird
Message:

kmk: More memchr and less strlen for simple assignments (var:=val).

File:
1 edited

Legend:

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

    r1805 r1808  
    17241724         variable buffer, and we may still need that if we're looking at a
    17251725         target-specific variable.  */
     1726#if !defined(KMK) || !defined(CONFIG_WITH_VALUE_LENGTH)
    17261727      p = alloc_value = allocated_variable_expand (value);
     1728#else  /* KMK - optimization */
     1729      p = alloc_value = allocated_variable_expand_2 (value, -1, &value_len);
     1730#endif /* KMK - optimization */
    17271731      break;
    17281732    case f_conditional:
     
    20892093#else  /* KMK - optimizations */
    20902094  //if (memchr (beg, '$', end - beg)) /* (Mostly for cleaning up the profiler result.) */
    2091       v->name = allocated_variable_expand_2 (beg, end - beg);
     2095      v->name = allocated_variable_expand_2 (beg, end - beg, NULL);
    20922096  //else
    20932097  //  {
Note: See TracChangeset for help on using the changeset viewer.