diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-27T20·56+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-27T20·56+0100 |
commit | 3652326ed281f5f753423acef51103fb8df62a6d (patch) | |
tree | 3e6969ccaa13e77eb42f887cd081b45d7fffed80 /third_party/nix/src/nix-store | |
parent | 86a35d963d7b6108dec44411c8ebd5aadbb148ac (diff) |
refactor(3p/nix): Anchor local includes at src/ r/865
Previously all includes were anchored in one global mess of header files. This moves the includes into filesystem "namespaces" (if you will) for each sub-package of Nix. Note: This commit does not introduce the relevant build system changes.
Diffstat (limited to 'third_party/nix/src/nix-store')
-rw-r--r-- | third_party/nix/src/nix-store/dotgraph.cc | 6 | ||||
-rw-r--r-- | third_party/nix/src/nix-store/dotgraph.hh | 2 | ||||
-rw-r--r-- | third_party/nix/src/nix-store/graphml.cc | 8 | ||||
-rw-r--r-- | third_party/nix/src/nix-store/graphml.hh | 2 | ||||
-rw-r--r-- | third_party/nix/src/nix-store/nix-store.cc | 24 |
5 files changed, 21 insertions, 21 deletions
diff --git a/third_party/nix/src/nix-store/dotgraph.cc b/third_party/nix/src/nix-store/dotgraph.cc index ef335bb5318d..2500b8f4b07d 100644 --- a/third_party/nix/src/nix-store/dotgraph.cc +++ b/third_party/nix/src/nix-store/dotgraph.cc @@ -1,9 +1,9 @@ -#include "dotgraph.hh" +#include "nix-store/dotgraph.hh" #include <iostream> -#include "store-api.hh" -#include "util.hh" +#include "libstore/store-api.hh" +#include "libutil/util.hh" using std::cout; diff --git a/third_party/nix/src/nix-store/dotgraph.hh b/third_party/nix/src/nix-store/dotgraph.hh index 20fc357b1bd4..40c268685494 100644 --- a/third_party/nix/src/nix-store/dotgraph.hh +++ b/third_party/nix/src/nix-store/dotgraph.hh @@ -1,6 +1,6 @@ #pragma once -#include "types.hh" +#include "libutil/types.hh" namespace nix { diff --git a/third_party/nix/src/nix-store/graphml.cc b/third_party/nix/src/nix-store/graphml.cc index 86b1c6b94231..ada4aaf6d048 100644 --- a/third_party/nix/src/nix-store/graphml.cc +++ b/third_party/nix/src/nix-store/graphml.cc @@ -1,10 +1,10 @@ -#include "graphml.hh" +#include "nix-store/graphml.hh" #include <iostream> -#include "derivations.hh" -#include "store-api.hh" -#include "util.hh" +#include "libstore/derivations.hh" +#include "libstore/store-api.hh" +#include "libutil/util.hh" using std::cout; diff --git a/third_party/nix/src/nix-store/graphml.hh b/third_party/nix/src/nix-store/graphml.hh index 199421acb264..be07904d0fc6 100644 --- a/third_party/nix/src/nix-store/graphml.hh +++ b/third_party/nix/src/nix-store/graphml.hh @@ -1,6 +1,6 @@ #pragma once -#include "types.hh" +#include "libutil/types.hh" namespace nix { diff --git a/third_party/nix/src/nix-store/nix-store.cc b/third_party/nix/src/nix-store/nix-store.cc index 713439308ae8..a642780b72e8 100644 --- a/third_party/nix/src/nix-store/nix-store.cc +++ b/third_party/nix/src/nix-store/nix-store.cc @@ -7,18 +7,18 @@ #include <sys/stat.h> #include <sys/types.h> -#include "archive.hh" -#include "derivations.hh" -#include "dotgraph.hh" -#include "globals.hh" -#include "graphml.hh" -#include "legacy.hh" -#include "local-store.hh" -#include "monitor-fd.hh" -#include "serve-protocol.hh" -#include "shared.hh" -#include "util.hh" -#include "worker-protocol.hh" +#include "libmain/shared.hh" +#include "libstore/derivations.hh" +#include "libstore/globals.hh" +#include "libstore/local-store.hh" +#include "libstore/serve-protocol.hh" +#include "libstore/worker-protocol.hh" +#include "libutil/archive.hh" +#include "libutil/monitor-fd.hh" +#include "libutil/util.hh" +#include "nix-store/dotgraph.hh" +#include "nix-store/graphml.hh" +#include "nix/legacy.hh" #if HAVE_SODIUM #include <sodium.h> |