Changeset 1827 for trunk/src/kmk/kbuild.c
- Timestamp:
- Oct 11, 2008, 9:12:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kbuild.c
r1818 r1827 1714 1714 char *pszDstVar, *pszDst, *pszSrcVar, *pszSrc, *pszVal, *psz; 1715 1715 char *pszSavedVarBuf; 1716 unsigned cchSavedVarBuf ;1716 unsigned cchSavedVarBuf, cchVal; 1717 1717 size_t cch; 1718 1718 struct kbuild_sdks Sdks; … … 1893 1893 */ 1894 1894 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. */ 1896 1896 1897 1897 install_variable_buffer(&pszSavedVarBuf, &cchSavedVarBuf); 1898 eval_buffer(pszVal );1898 eval_buffer(pszVal, pszVal + cchVal); 1899 1899 restore_variable_buffer(pszSavedVarBuf, cchSavedVarBuf); 1900 1900 … … 1903 1903 kbuild_put_sdks(&Sdks); 1904 1904 (void)pszFuncName; 1905 return variable_buffer_output(o, "", 1); 1905 return variable_buffer_output(o, "", 1); /** @todo not right. */ 1906 1906 } 1907 1907
Note:
See TracChangeset
for help on using the changeset viewer.