enh: Rename private sources, include public headers with rel path
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Fri, 25 Nov 2016 12:35:39 +0000 (12:35 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Fri, 25 Nov 2016 12:38:54 +0000 (12:38 +0000)
CMakeLists.txt
src/completions.cc [moved from src/gflags_completions.cc with 99% similarity]
src/gflags.cc
src/gflags.h.in
src/mutex.h
src/reporting.cc [moved from src/gflags_reporting.cc with 99% similarity]
src/util.h

index 3fd9d70..ca7c147 100644 (file)
@@ -350,8 +350,8 @@ set (PRIVATE_HDRS
 
 set (GFLAGS_SRCS
   "gflags.cc"
-  "gflags_reporting.cc"
-  "gflags_completions.cc"
+  "reporting.cc"
+  "completions.cc"
 )
 
 if (OS_WINDOWS)
similarity index 99%
rename from src/gflags_completions.cc
rename to src/completions.cc
index 8fefa1b..875088d 100644 (file)
 //     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 <stdio.h>
 #include <stdlib.h>
 #include <string.h>   // for strlen
 #include <utility>
 #include <vector>
 
-#include "gflags.h"
+#include "config.h"
 #include "util.h"
 
+#include "gflags/gflags.h"
+#include "gflags/gflags_completions.h"
+
 using std::set;
 using std::string;
 using std::vector;
index 42dcd04..bc62227 100644 (file)
@@ -88,7 +88,7 @@
 // are, similarly, mostly hooks into the functionality described above.
 
 #include "config.h"
-#include "gflags.h"
+#include "gflags/gflags.h"
 
 #include <assert.h>
 #include <ctype.h>
index 3732636..43b3f7a 100644 (file)
@@ -81,7 +81,7 @@
 #include <string>
 #include <vector>
 
-#include "gflags_declare.h" // IWYU pragma: export
+#include "gflags/gflags_declare.h" // IWYU pragma: export
 
 
 // We always want to export variables defined in user code
index ff96f2b..1648c2f 100644 (file)
 #ifndef GFLAGS_MUTEX_H_
 #define GFLAGS_MUTEX_H_
 
-#include "gflags_declare.h"     // to figure out pthreads support
+#include "gflags/gflags_declare.h"     // to figure out pthreads support
 
 #if defined(NO_THREADS)
   typedef int MutexType;        // to keep a lock-count
similarity index 99%
rename from src/gflags_reporting.cc
rename to src/reporting.cc
index fb17059..7cc6691 100644 (file)
@@ -56,8 +56,8 @@
 #include <vector>
 
 #include "config.h"
-#include "gflags.h"
-#include "gflags_completions.h"
+#include "gflags/gflags.h"
+#include "gflags/gflags_completions.h"
 #include "util.h"
 
 
index 164e3cf..e6b28cc 100644 (file)
@@ -35,6 +35,7 @@
 #define GFLAGS_UTIL_H_
 
 #include "config.h"
+#include "gflags/gflags_declare.h" // GFLAGS_NAMESPACE
 
 #include <assert.h>
 #ifdef HAVE_INTTYPES_H