]> granicus.if.org Git - graphviz/commitdiff
disambiguate lib/sparse/*.c #includes
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 22 Aug 2020 17:45:33 +0000 (10:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 10 Sep 2020 02:26:52 +0000 (19:26 -0700)
Related to #1242 and #1785.

15 files changed:
lib/sparse/BinaryHeap.c
lib/sparse/CMakeLists.txt
lib/sparse/DotIO.c
lib/sparse/IntStack.c
lib/sparse/LinkedList.c
lib/sparse/Makefile.am
lib/sparse/QuadTree.c
lib/sparse/SparseMatrix.c
lib/sparse/clustering.c
lib/sparse/color_palette.c
lib/sparse/colorutil.c
lib/sparse/general.c
lib/sparse/gvsparse.vcxproj
lib/sparse/mq.c
lib/sparse/vector.c

index 0321efda60d4a452e9e1530a68915f19646bbfa6..2720ace0977a2e9206497f40ca99308f5e174d04 100644 (file)
@@ -11,7 +11,7 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "BinaryHeap.h"
+#include <sparse/BinaryHeap.h>
 
 BinaryHeap BinaryHeap_new(int (*cmp)(void*item1, void*item2)){
   BinaryHeap h;
index 382650c60b53cbb9e6f2f112da4e3119683350fc..5eea9dc883dcec36692d967b07c33ba676fc16c4 100644 (file)
@@ -1,11 +1,3 @@
-include_directories(
-    ${CMAKE_CURRENT_SOURCE_DIR}
-    ${GRAPHVIZ_LIB_DIR}/cdt
-    ${GRAPHVIZ_LIB_DIR}/cgraph
-    ${GRAPHVIZ_LIB_DIR}/common
-    ${GRAPHVIZ_LIB_DIR}/sfdpgen
-)
-
 add_library(sparse STATIC
     # Header files
     BinaryHeap.h
@@ -35,3 +27,12 @@ add_library(sparse STATIC
     SparseMatrix.c
     vector.c
 )
+
+target_include_directories(sparse PRIVATE
+    ${GRAPHVIZ_LIB_DIR}
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+    ${GRAPHVIZ_LIB_DIR}/sfdpgen
+)
index 68c9dde59c7484216ece685adc729364b1e9a227..1b1716dd4090aaac2c6158295d80246f5c10c056 100644 (file)
  *************************************************************************/
 
 #define STANDALONE
-#include "general.h"
-#include "DotIO.h"
-#include "clustering.h"
+#include <sparse/general.h>
+#include <sparse/DotIO.h>
+#include <sparse/clustering.h>
 #include <math.h>
-#include "mq.h"
-/* #include "spring_electrical.h" */
-#include "color_palette.h"
-#include "colorutil.h"
+#include <sparse/mq.h>
+#include <sparse/color_palette.h>
+#include <sparse/colorutil.h>
 
 typedef struct {
     Agrec_t h;
index 8961174a9ebaa90a8e4bb5f73fdc2258f88c19a1..3b42af308fab8cdcd27bca2e5affe11d6c66d2ef 100644 (file)
@@ -11,8 +11,8 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "general.h"
-#include "IntStack.h"
+#include <sparse/general.h>
+#include <sparse/IntStack.h>
 
 IntStack IntStack_new(void){
   IntStack s;
index 08a63fccbd74754d0478274a04424abfd2cfd765..7caf9f08a2cd292426dc0067783138c2dd547470 100644 (file)
@@ -11,8 +11,8 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "LinkedList.h"
-#include "memory.h"
+#include <sparse/LinkedList.h>
+#include <common/memory.h>
 #define FREE free
 
 
index 2b60506b051d67fcc19c13196e05cf26c7ec9511..8421a38248234cc3b6a33480d05bdc2f00a9367f 100644 (file)
@@ -2,6 +2,7 @@
 ## Process this file with automake to produce Makefile.in
 
 AM_CPPFLAGS = \
+       -I$(top_srcdir)/lib \
        -I$(top_srcdir)/lib/sfdpgen \
        -I$(top_srcdir)/lib/common \
        -I$(top_srcdir)/lib/cgraph \
index 08bd95a663a70bf6053c5853425854119aaf440e..42ad4f908597f274ccff3d3c53298e0282d9be4d 100644 (file)
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "general.h"
-#include "geom.h"
-#include "arith.h"
-#include "math.h"
-#include "LinkedList.h"
-#include "QuadTree.h"
+#include <sparse/general.h>
+#include <common/geom.h>
+#include <common/arith.h>
+#include <math.h>
+#include <sparse/LinkedList.h>
+#include <sparse/QuadTree.h>
 
 extern real distance_cropped(real *x, int dim, int i, int j);
 
index 07565c9d0c5acbc359210f73ab5b05e895396244..8bdf9da6431f582dfbe7a349123637cca0588f45 100644 (file)
 #include <string.h>
 #include <math.h>
 #include <assert.h>
-#include "logic.h"
-#include "memory.h"
-#include "arith.h"
-#include "SparseMatrix.h"
-#include "BinaryHeap.h"
+#include <common/logic.h>
+#include <common/memory.h>
+#include <common/arith.h>
+#include <sparse/SparseMatrix.h>
+#include <sparse/BinaryHeap.h>
 #if PQ
-#include "LinkedList.h"
-#include "PriorityQueue.h"
+#include <sparse/LinkedList.h>
+#include <sparse/PriorityQueue.h>
 #endif
 
 static size_t size_of_matrix_type(int type){
index b1dbba45c49982472c9f6173864ebb00cdc17bb5..86fe04e29a2ab0457937879b22e72c41c64b509a 100644 (file)
@@ -12,9 +12,9 @@
  *************************************************************************/
 
 #define STANDALONE
-#include "general.h"
-#include "SparseMatrix.h"
-#include "clustering.h"
+#include <sparse/general.h>
+#include <sparse/SparseMatrix.h>
+#include <sparse/clustering.h>
 
 
 
index f2a5208b071d31b4b45e676116f657b4fb8254b5..9f8bf34f8a0f31493f8d18f5182f58480999e677 100644 (file)
@@ -9,9 +9,9 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "color_palette.h"
-#include "string.h"
-#include "macros.h"
+#include <sparse/color_palette.h>
+#include <string.h>
+#include <common/macros.h>
 
 int knownColorScheme (char* name)
 {
index d70179fe245056e120a7934ba88681da7a441a6d..50a0c940de5419ca77e527b900ed721f9a4981f9 100644 (file)
@@ -11,8 +11,8 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "general.h"
-#include "colorutil.h"
+#include <sparse/general.h>
+#include <sparse/colorutil.h>
 
 static void r2hex(float r, char *h){
   /* convert a number in [0,1] to 0 to 255 then to a hex */
index cadfba37ab291df7aa32960004e18cbc9d068b03..a4c9fd0e3e5ffe7930077f49d547cf50497a88bb 100644 (file)
@@ -11,7 +11,7 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "general.h"
+#include <sparse/general.h>
 #include <errno.h>
 
 #ifdef DEBUG
index dd7ba14016f7c0ceba75ba8e932c0ca16d59b7c2..7057b140d095839b3b7c8856f84b2c0e43dd29d6 100644 (file)
@@ -61,7 +61,7 @@
       <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
       <EnablePREfast>true</EnablePREfast>
       <DisableSpecificWarnings>4996</DisableSpecificWarnings>
-      <AdditionalIncludeDirectories>$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     <Lib />
   </ItemDefinitionGroup>
@@ -72,7 +72,7 @@
       <WarningLevel>Level4</WarningLevel>
       <EnablePREfast>true</EnablePREfast>
       <DisableSpecificWarnings>4996</DisableSpecificWarnings>
-      <AdditionalIncludeDirectories>$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     <Lib />
   </ItemDefinitionGroup>
index 055628c8172a8ba455ea57a60c075ab97cd52761..5fb0658d8778808a6bfddae20c9c0c62706f5736 100644 (file)
 */
 
 #define STANDALONE
-#include "general.h"
-#include "SparseMatrix.h"
-#include "mq.h"
-#include "LinkedList.h"
+#include <sparse/general.h>
+#include <sparse/SparseMatrix.h>
+#include <sparse/mq.h>
+#include <sparse/LinkedList.h>
 #include <string.h>
 
 static real get_mq(SparseMatrix A, int *assignment, int *ncluster0, real *mq_in0, real *mq_out0, real **dout0){
index 0d2d500f3ffed9751b1d23d15dbffea4ed00bc14..cd205bb23899578621d8ba8e15f4cdfde38bfd48 100644 (file)
@@ -10,8 +10,8 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include "general.h"
-#include "vector.h"
+#include <sparse/general.h>
+#include <sparse/vector.h>
 
 
 /*---------------- base vector class ----------- */