From 3652326ed281f5f753423acef51103fb8df62a6d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 27 May 2020 21:56:34 +0100 Subject: refactor(3p/nix): Anchor local includes at src/ 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. --- third_party/nix/src/nix-store/dotgraph.cc | 6 +++--- third_party/nix/src/nix-store/dotgraph.hh | 2 +- third_party/nix/src/nix-store/graphml.cc | 8 ++++---- third_party/nix/src/nix-store/graphml.hh | 2 +- third_party/nix/src/nix-store/nix-store.cc | 24 ++++++++++++------------ 5 files changed, 21 insertions(+), 21 deletions(-) (limited to 'third_party/nix/src/nix-store') 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 -#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 -#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 #include -#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 -- cgit 1.4.1