From 8f2c22a03f40da83f48d8e7c799d551c8005a8b6 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Fri, 25 Nov 2016 13:42:29 +0000 Subject: [PATCH] Revert "enh: Rename private sources, include public headers with rel path" --- CMakeLists.txt | 4 ++-- src/gflags.cc | 2 +- src/gflags.h.in | 2 +- src/{completions.cc => gflags_completions.cc} | 10 ++++++---- src/{reporting.cc => gflags_reporting.cc} | 4 ++-- src/mutex.h | 2 +- src/util.h | 1 - 7 files changed, 13 insertions(+), 12 deletions(-) rename src/{completions.cc => gflags_completions.cc} (99%) rename src/{reporting.cc => gflags_reporting.cc} (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca7c147..3fd9d70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -350,8 +350,8 @@ set (PRIVATE_HDRS set (GFLAGS_SRCS "gflags.cc" - "reporting.cc" - "completions.cc" + "gflags_reporting.cc" + "gflags_completions.cc" ) if (OS_WINDOWS) diff --git a/src/gflags.cc b/src/gflags.cc index bc62227..42dcd04 100644 --- a/src/gflags.cc +++ b/src/gflags.cc @@ -88,7 +88,7 @@ // are, similarly, mostly hooks into the functionality described above. #include "config.h" -#include "gflags/gflags.h" +#include "gflags.h" #include #include diff --git a/src/gflags.h.in b/src/gflags.h.in index 43b3f7a..3732636 100644 --- a/src/gflags.h.in +++ b/src/gflags.h.in @@ -81,7 +81,7 @@ #include #include -#include "gflags/gflags_declare.h" // IWYU pragma: export +#include "gflags_declare.h" // IWYU pragma: export // We always want to export variables defined in user code diff --git a/src/completions.cc b/src/gflags_completions.cc similarity index 99% rename from src/completions.cc rename to src/gflags_completions.cc index 875088d..8fefa1b 100644 --- a/src/completions.cc +++ b/src/gflags_completions.cc @@ -46,6 +46,11 @@ // 5a) Force bash to place most-relevent groups at the top of the list // 5b) Trim most flag's descriptions to fit on a single terminal line + +#include "gflags_completions.h" + +#include "config.h" + #include #include #include // for strlen @@ -55,12 +60,9 @@ #include #include -#include "config.h" +#include "gflags.h" #include "util.h" -#include "gflags/gflags.h" -#include "gflags/gflags_completions.h" - using std::set; using std::string; using std::vector; diff --git a/src/reporting.cc b/src/gflags_reporting.cc similarity index 99% rename from src/reporting.cc rename to src/gflags_reporting.cc index 7cc6691..fb17059 100644 --- a/src/reporting.cc +++ b/src/gflags_reporting.cc @@ -56,8 +56,8 @@ #include #include "config.h" -#include "gflags/gflags.h" -#include "gflags/gflags_completions.h" +#include "gflags.h" +#include "gflags_completions.h" #include "util.h" diff --git a/src/mutex.h b/src/mutex.h index 1648c2f..ff96f2b 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -106,7 +106,7 @@ #ifndef GFLAGS_MUTEX_H_ #define GFLAGS_MUTEX_H_ -#include "gflags/gflags_declare.h" // to figure out pthreads support +#include "gflags_declare.h" // to figure out pthreads support #if defined(NO_THREADS) typedef int MutexType; // to keep a lock-count diff --git a/src/util.h b/src/util.h index e6b28cc..164e3cf 100644 --- a/src/util.h +++ b/src/util.h @@ -35,7 +35,6 @@ #define GFLAGS_UTIL_H_ #include "config.h" -#include "gflags/gflags_declare.h" // GFLAGS_NAMESPACE #include #ifdef HAVE_INTTYPES_H -- 2.7.4