Ignore:
Timestamp:
Sep 17, 2006, 10:38:57 PM (19 years ago)
Author:
bird
Message:

Added kBuild specific functions for speeding up source processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/expand.c

    r527 r530  
    522522  /* Either expand it or copy it, depending.  */
    523523  if (! v->recursive)
     524#ifdef CONFIG_WITH_VALUE_LENGTH
     525    return variable_buffer_output (buf, v->value,
     526                                   v->value_length >= 0 ? v->value_length : strlen (v->value));
     527#else
    524528    return variable_buffer_output (buf, v->value, strlen (v->value));
    525 
     529#endif
     530
     531#ifdef CONFIG_WITH_VALUE_LENGTH
     532  buf = variable_expand_string (buf, v->value, v->value_length >= 0 ? v->value_length : strlen (v->value));
     533#else
    526534  buf = variable_expand_string (buf, v->value, strlen (v->value));
     535#endif
    527536  return (buf + strlen (buf));
    528537}
Note: See TracChangeset for help on using the changeset viewer.