diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
commit | 75068e7d753cf6cbe45a4bf294000dca9bd41d8b (patch) | |
tree | c6274cc10caab08349b5585206034f41ca4a575f /src/nix-env/profiles.cc | |
parent | aab88127321344d5818d823bff515d127108d058 (diff) |
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
Diffstat (limited to 'src/nix-env/profiles.cc')
-rw-r--r-- | src/nix-env/profiles.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix-env/profiles.cc b/src/nix-env/profiles.cc index 6ec12e604c73..0db5bda5e9b6 100644 --- a/src/nix-env/profiles.cc +++ b/src/nix-env/profiles.cc @@ -1,4 +1,5 @@ #include "profiles.hh" +#include "util.hh" #include <sys/types.h> #include <sys/stat.h> @@ -7,6 +8,9 @@ #include <stdio.h> +namespace nix { + + static bool cmpGensByNumber(const Generation & a, const Generation & b) { return a.number < b.number; @@ -126,3 +130,7 @@ void switchLink(Path link, Path target) if (rename(tmp.c_str(), link.c_str()) != 0) throw SysError(format("renaming `%1%' to `%2%'") % tmp % link); } + + +} + |