mirror of
https://github.com/NixOS/nix
synced 2025-07-02 01:01:48 +02:00
* An forward non-random access input iterator class for ATermLists.
This commit is contained in:
parent
3e5a019a07
commit
45610ae675
6 changed files with 68 additions and 88 deletions
|
@ -54,10 +54,8 @@ static void printNixExpr(EvalState & state, Expr e)
|
|||
}
|
||||
|
||||
if (ATgetType(e) == AT_LIST) {
|
||||
while (!ATisEmpty(es)) {
|
||||
printNixExpr(state, evalExpr(state, ATgetFirst(es)));
|
||||
es = ATgetNext(es);
|
||||
}
|
||||
for (ATermIterator i((ATermList) e); i; ++i)
|
||||
printNixExpr(state, evalExpr(state, *i));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue