1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

* Use a proper namespace.

* Optimise header file usage a bit.
* Compile the parser as C++.
This commit is contained in:
Eelco Dolstra 2006-09-04 21:06:23 +00:00
parent aab8812732
commit 75068e7d75
61 changed files with 650 additions and 268 deletions

View file

@ -9,7 +9,10 @@
#include "eval.hh"
typedef map<string, string> MetaInfo;
namespace nix {
typedef std::map<string, string> MetaInfo;
struct DrvInfo
@ -23,7 +26,7 @@ public:
string attrPath; /* path towards the derivation */
string system;
shared_ptr<ATermMap> attrs;
boost::shared_ptr<ATermMap> attrs;
string queryDrvPath(EvalState & state) const;
string queryOutPath(EvalState & state) const;
@ -52,5 +55,8 @@ bool getDerivation(EvalState & state, Expr e, DrvInfo & drv);
void getDerivations(EvalState & state, Expr e, const string & pathPrefix,
const ATermMap & autoArgs, DrvInfos & drvs);
}
#endif /* !__GET_DRVS_H */