forked from lix-project/lix
traceable_allocator
This commit is contained in:
parent
f400c5466d
commit
dea998b2f2
|
@ -276,6 +276,6 @@ void printClosureDiff(
|
||||||
void runRepl(
|
void runRepl(
|
||||||
ref<EvalState> evalState,
|
ref<EvalState> evalState,
|
||||||
const Expr & expr,
|
const Expr & expr,
|
||||||
const std::map<std::string, Value *> & extraEnv);
|
const ValMap & extraEnv);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1016,7 +1016,7 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
|
||||||
void runRepl(
|
void runRepl(
|
||||||
ref<EvalState> evalState,
|
ref<EvalState> evalState,
|
||||||
const Expr &expr,
|
const Expr &expr,
|
||||||
const std::map<std::string, Value *> & extraEnv)
|
const ValMap & extraEnv)
|
||||||
{
|
{
|
||||||
auto repl = std::make_unique<NixRepl>(evalState);
|
auto repl = std::make_unique<NixRepl>(evalState);
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,11 @@ struct PrimOp
|
||||||
const char * doc = nullptr;
|
const char * doc = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<std::string, Value *> ValMap;
|
#if HAVE_BOEHMGC
|
||||||
|
typedef std::map<std::string, Value *, std::less<std::string>, traceable_allocator<std::pair<const std::string, Value *> > > ValMap;
|
||||||
|
#else
|
||||||
|
typedef std::map<std::string, Value *> ValMap;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct Env
|
struct Env
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue