From 8d6418d46e5f8a2f31417ba363efd2785c49b2eb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Oct 2013 22:51:12 +0100 Subject: Fix building without a garbage collector http://hydra.nixos.org/build/6695350 --- src/libexpr/primops.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 6e1f86c2a..180a24dff 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -177,9 +177,9 @@ struct CompareValues #if HAVE_BOEHMGC -typedef list > ValueVector; +typedef list > ValueList; #else -typedef vector ValueVector; +typedef list ValueList; #endif @@ -196,7 +196,7 @@ static void prim_genericClosure(EvalState & state, Value * * args, Value & v) throw EvalError("attribute `startSet' required"); state.forceList(*startSet->value); - ValueVector workSet; + ValueList workSet; for (unsigned int n = 0; n < startSet->value->list.length; ++n) workSet.push_back(startSet->value->list.elems[n]); @@ -210,7 +210,7 @@ static void prim_genericClosure(EvalState & state, Value * * args, Value & v) /* Construct the closure by applying the operator to element of `workSet', adding the result to `workSet', continuing until no new elements are found. */ - ValueVector res; + ValueList res; // `doneKeys' doesn't need to be a GC root, because its values are // reachable from res. set doneKeys; @@ -245,7 +245,7 @@ static void prim_genericClosure(EvalState & state, Value * * args, Value & v) /* Create the result list. */ state.mkList(v, res.size()); unsigned int n = 0; - foreach (ValueVector::iterator, i, res) + foreach (ValueList::iterator, i, res) v.list.elems[n++] = *i; } -- cgit v1.2.3