From f400c5466d45d342709483799d9b9c2ac24cf967 Mon Sep 17 00:00:00 2001 From: Ben Burdette Date: Thu, 5 May 2022 15:43:23 -0600 Subject: [PATCH] rename valmap --- src/libexpr/eval.cc | 6 +++--- src/libexpr/eval.hh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ca0eec6e3..659b97658 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -772,7 +772,7 @@ void printEnvBindings(const SymbolTable & st, const Expr & expr, const Env & env 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 // override the higher levels. @@ -795,9 +795,9 @@ void mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const En } } -std::unique_ptr mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env) +std::unique_ptr mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env) { - auto vm = std::make_unique(); + auto vm = std::make_unique(); mapStaticEnvBindings(st, se, env, *vm); return vm; } diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index f3852e248..22f034e27 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -37,7 +37,7 @@ struct PrimOp const char * doc = nullptr; }; -typedef std::map valmap; +typedef std::map ValMap; struct Env { @@ -47,7 +47,7 @@ struct Env Value * values[0]; }; -std::unique_ptr mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env); +std::unique_ptr mapStaticEnvBindings(const SymbolTable & st, const StaticEnv & se, const Env & env); void copyContext(const Value & v, PathSet & context);