forked from lix-project/lix
41c45a9b31
a pointer to a Value, rather than the Value directly. This improves the effectiveness of garbage collection a lot: if the Value is stored inside the set directly, then any live pointer to the Value causes all other attributes in the set to be live as well.
21 lines
274 B
C++
21 lines
274 B
C++
#ifndef __ATTR_PATH_H
|
|
#define __ATTR_PATH_H
|
|
|
|
#include "eval.hh"
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
void findAlongAttrPath(EvalState & state, const string & attrPath,
|
|
Bindings & autoArgs, Expr * e, Value & v);
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif /* !__ATTR_PATH_H */
|