]> granicus.if.org Git - graphviz/commitdiff
lib/circogen: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 21 Oct 2021 00:22:53 +0000 (17:22 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 27 Oct 2021 00:28:42 +0000 (17:28 -0700)
lib/circogen/block.h
lib/circogen/blockpath.h
lib/circogen/blocktree.h
lib/circogen/circo.h
lib/circogen/circpos.h
lib/circogen/circular.h
lib/circogen/deglist.h
lib/circogen/edgelist.h
lib/circogen/nodelist.h
lib/circogen/nodeset.h

index 21cbebe4707f0a1c791a85f8b8cbd6582ac684c0..fda78e06d6ad87461837c42e005a0a813cba5b83 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef BLOCK_H
-#define BLOCK_H
-
 #include  <circogen/nodelist.h>
 
     typedef struct block block_t;
@@ -57,8 +56,6 @@ extern "C" {
 #define COALESCED(b) (BLK_FLAGS(b)&COALESCED_F)
 #define SET_COALESCED(b) (BLK_FLAGS(b) |= COALESCED_F)
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index ba32be4897374af8634100ff5284213aaff5d11a..1fffe37852c7ce4415e818e7c20a83073aace5f1 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef BLOCKPATH_H
-#define BLOCKPATH_H
-
 #include <circogen/circular.h>
 
     extern nodelist_t *layout_block(Agraph_t * g, block_t * sn, double);
@@ -24,8 +23,6 @@ extern "C" {
     extern void prTree(Agraph_t * g);
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index ae387c2cb2de72c87c161205b034d4d89df33f47..388c0b89e942fc16833531292193ad41874ae87a 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef BLOCKTREE_H
-#define BLOCKTREE_H
-
 #include <render.h>
 #include <circogen/circular.h>
 
@@ -24,8 +23,6 @@ extern "C" {
     extern void print_blocktree(block_t * sn, int depth);
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index a739fe5502b3f9eccd1aefd6c66ffddc0eeb30c5..259bc26bceb2206b8937e7c4266e17b129122537 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef CIRCO_H
-#define CIRCO_H
+#pragma once
 
 #include "render.h"
 
@@ -25,4 +24,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index a91ee38241f99c7622f551b64d1841a2888c1350..07c2cd9da95352a8e7148ea73b6fca9a154fa2bb 100644 (file)
@@ -8,20 +8,17 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef CIRCPOS_H
-#define CIRCPOS_H
-
 #include <render.h>
 #include <circogen/circular.h>
 
     extern void circPos(Agraph_t * g, block_t * sn, circ_state *);
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index b199cdeb2efbaefa783b0e507cd6ec965923c4a6..1778c27f094b4d6b5d26bc06dfb8d1f22e1fba2c 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef CIRCULAR_H
-#define CIRCULAR_H
+#pragma once
 
 #include "render.h"
 #include <circogen/block.h>
@@ -136,4 +135,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 244d332522630f3ca40b8924a1350b74357e480f..342bd0ab4f02292fff87415d296d31dbf2ff696f 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef DEGLIST_H
-#define DEGLIST_H
-
 /* List of nodes sorted by increasing degree */
 
 #include  <render.h>
@@ -31,8 +30,6 @@ extern "C" {
     extern void printDeglist(deglist_t *);
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index fc62380d3c8cbe938c7dd2336a46e108dfae1ea4..4885e6db121a0ada8a02224466c460350a0368d9 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef EDGELIST_H
-#define EDGELIST_H
-
 #include  <render.h>
 
     typedef struct edgelistitem {
@@ -33,8 +32,6 @@ extern "C" {
     extern void print_edge(edgelist *);
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index 28fe6ba1cb9b868b6481e4212758531263cced45..c0f7dd242747a7e89b4ca5b38e39787c0a2b5d48 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef NODELIST_H
-#define NODELIST_H
-
 #include  <render.h>
 
     typedef struct nodelistitem nodelistitem_t;
@@ -53,8 +52,6 @@ extern "C" {
     extern void printNodelist(nodelist_t * list);
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index 2790cf2c973245c691bd0a8ae2ea20a82cd54ac2..447d6aea8db311b7c68141241f1707a4fd025c04 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef NODESET_H
-#define NODESET_H
-
 #include  <render.h>
 
     typedef struct {
@@ -35,8 +34,6 @@ extern "C" {
     extern void printNodeset(nodeset_t *);
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif