Ignore:
Timestamp:
Oct 11, 2008, 9:12:10 AM (17 years ago)
Author:
bird
Message:

kmk: more length optimizations.

File:
1 edited

Legend:

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

    r1818 r1827  
    17141714    char *pszDstVar, *pszDst, *pszSrcVar, *pszSrc, *pszVal, *psz;
    17151715    char *pszSavedVarBuf;
    1716     unsigned cchSavedVarBuf;
     1716    unsigned cchSavedVarBuf, cchVal;
    17171717    size_t cch;
    17181718    struct kbuild_sdks Sdks;
     
    18931893    */
    18941894    pVar = kbuild_get_recursive_variable("def_target_source_rule");
    1895     pszVal = allocated_variable_expand_2(pVar->value, pVar->value_length, NULL);
     1895    pszVal = allocated_variable_expand_2(pVar->value, pVar->value_length, &cchVal); /** @todo we can use the variable buffer here. */
    18961896
    18971897    install_variable_buffer(&pszSavedVarBuf, &cchSavedVarBuf);
    1898     eval_buffer(pszVal);
     1898    eval_buffer(pszVal, pszVal + cchVal);
    18991899    restore_variable_buffer(pszSavedVarBuf, cchSavedVarBuf);
    19001900
     
    19031903    kbuild_put_sdks(&Sdks);
    19041904    (void)pszFuncName;
    1905     return variable_buffer_output(o, "", 1);
     1905    return variable_buffer_output(o, "", 1); /** @todo not right. */
    19061906}
    19071907
Note: See TracChangeset for help on using the changeset viewer.