forked from lix-project/lix
parseExprFromFile -> evalFile
parseExprFromFile() should be avoided since it doesn't cache anything.
This commit is contained in:
parent
ba75c69e00
commit
23fa7e3606
|
@ -30,10 +30,8 @@ Value * SourceExprCommand::getSourceExpr(EvalState & state)
|
|||
|
||||
vSourceExpr = state.allocValue();
|
||||
|
||||
if (file != "") {
|
||||
Expr * e = state.parseExprFromFile(resolveExprPath(lookupFileArg(state, file)));
|
||||
state.eval(e, *vSourceExpr);
|
||||
}
|
||||
if (file != "")
|
||||
state.evalFile(lookupFileArg(state, file), *vSourceExpr);
|
||||
|
||||
else {
|
||||
|
||||
|
|
Loading…
Reference in a new issue