forked from lix-project/lix
rename valmap
This commit is contained in:
parent
09fcfee925
commit
f400c5466d
|
@ -772,7 +772,7 @@ void printEnvBindings(const SymbolTable & st, const Expr & expr, const Env & env
|
||||||
printEnvBindings(st, *expr.staticEnv.get(), env, 0);
|
printEnvBindings(st, *expr.staticEnv.get(), env, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env, valmap & vm)
|
void mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env, ValMap & vm)
|
||||||
{
|
{
|
||||||
// add bindings for the next level up first, so that the bindings for this level
|
// add bindings for the next level up first, so that the bindings for this level
|
||||||
// override the higher levels.
|
// override the higher levels.
|
||||||
|
@ -795,9 +795,9 @@ void mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const En
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<valmap> mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env)
|
std::unique_ptr<ValMap> mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env)
|
||||||
{
|
{
|
||||||
auto vm = std::make_unique<valmap>();
|
auto vm = std::make_unique<ValMap>();
|
||||||
mapStaticEnvBindings(st, se, env, *vm);
|
mapStaticEnvBindings(st, se, env, *vm);
|
||||||
return vm;
|
return vm;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ struct PrimOp
|
||||||
const char * doc = nullptr;
|
const char * doc = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<std::string, Value *> valmap;
|
typedef std::map<std::string, Value *> ValMap;
|
||||||
|
|
||||||
struct Env
|
struct Env
|
||||||
{
|
{
|
||||||
|
@ -47,7 +47,7 @@ struct Env
|
||||||
Value * values[0];
|
Value * values[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
std::unique_ptr<valmap> mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env);
|
std::unique_ptr<ValMap> mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env);
|
||||||
|
|
||||||
void copyContext(const Value & v, PathSet & context);
|
void copyContext(const Value & v, PathSet & context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue