diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-02-12T16·57+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12T16·57+0100 |
commit | 7a7ec2229834aa294b3e09df7f514b7134287ec2 (patch) | |
tree | 4c704e904b9ed21536ceb39632e61d7c78b2917b /src/libexpr/eval.hh | |
parent | 01d07b1e92c298f729a73705907b2987da9a4d0c (diff) | |
parent | b30be6b450f872f8be6dc8afa28f4b030fa8d1d1 (diff) |
Merge pull request #2628 from shlevy/context-introspection
Context introspection
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index d0f298e168e9..9fe3878916d5 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -316,6 +316,9 @@ private: /* Return a string representing the type of the value `v'. */ string showType(const Value & v); +/* Decode a context string ‘!<name>!<path>’ into a pair <path, + name>. */ +std::pair<string, string> decodeContext(const string & s); /* If `path' refers to a directory, then append "/default.nix". */ Path resolveExprPath(Path path); |