From 3aba21730616bdf8b3e8243cc76818db91de5e09 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 19 Oct 2021 21:16:56 -0700 Subject: [PATCH] gvmap: replace header guards with more modern #pragma once --- cmd/gvmap/country_graph_coloring.h | 5 +---- cmd/gvmap/make_map.h | 5 +---- cmd/gvmap/power.h | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/cmd/gvmap/country_graph_coloring.h b/cmd/gvmap/country_graph_coloring.h index 45cb1469e..b597d2a1b 100644 --- a/cmd/gvmap/country_graph_coloring.h +++ b/cmd/gvmap/country_graph_coloring.h @@ -8,13 +8,10 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ -#ifndef COUNTRY_GRAPH_CLUSTERING_H -#define COUNTRY_GRAPH_CLUSTERING_H +#pragma once #include void country_graph_coloring(int seed, SparseMatrix A, int **p); void improve_antibandwidth_by_swapping(SparseMatrix A, int *p); - -#endif diff --git a/cmd/gvmap/make_map.h b/cmd/gvmap/make_map.h index f77546708..17b129a77 100644 --- a/cmd/gvmap/make_map.h +++ b/cmd/gvmap/make_map.h @@ -8,8 +8,7 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ -#ifndef MAKE_MAP_H -#define MAKE_MAP_H +#pragma once #include #include @@ -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 diff --git a/cmd/gvmap/power.h b/cmd/gvmap/power.h index c2e66cf4e..342cce1a2 100644 --- a/cmd/gvmap/power.h +++ b/cmd/gvmap/power.h @@ -8,12 +8,9 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ -#ifndef POWER_H -#define POWER_H +#pragma once #include void power_method(void *A, int n, int K, int random_seed, real **eigv, real *eigs); - -#endif -- 2.40.0