]> granicus.if.org Git - graphviz/commitdiff
gvmap: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 20 Oct 2021 04:16:56 +0000 (21:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 21 Oct 2021 01:41:45 +0000 (18:41 -0700)
cmd/gvmap/country_graph_coloring.h
cmd/gvmap/make_map.h
cmd/gvmap/power.h

index 45cb1469e26abd1e730d1a80a973c151187dab6d..b597d2a1b1c57cecb33ec6a92cae586caa2eb6ac 100644 (file)
@@ -8,13 +8,10 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef COUNTRY_GRAPH_CLUSTERING_H
-#define COUNTRY_GRAPH_CLUSTERING_H
+#pragma once
 
 #include <sparse/SparseMatrix.h>
 
 void country_graph_coloring(int seed, SparseMatrix A, int **p);
 
 void improve_antibandwidth_by_swapping(SparseMatrix A, int *p);
-
-#endif
index f775467087780a7b3cd34f7a5a54049e16400856..17b129a775974915f8a37b6111468cdaaff66bd9 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef MAKE_MAP_H
-#define MAKE_MAP_H
+#pragma once
 
 #include <sparse/SparseMatrix.h>
 #include <cgraph/cgraph.h>
@@ -37,5 +36,3 @@ enum {POLY_LINE_REAL_EDGE, POLY_LINE_NOT_REAL_EDGE};
 #define edge_tail(e) edge_table[2*(e)+1]
 #define cycle_prev(e) cycle[2*(e)]
 #define cycle_next(e) cycle[2*(e)+1]
-
-#endif
index c2e66cf4ebe982896cfee019b635a2270d51e662..342cce1a21a5618d1cad1f53b820850b7ecb146d 100644 (file)
@@ -8,12 +8,9 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef POWER_H
-#define POWER_H
+#pragma once
 
 #include <sparse/general.h>
 
 void power_method(void *A, int n, int K, int random_seed,
   real **eigv, real *eigs);
-
-#endif