]> granicus.if.org Git - graphviz/commitdiff
lib/patchwork: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 21 Oct 2021 00:23:20 +0000 (17:23 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 27 Oct 2021 00:28:42 +0000 (17:28 -0700)
lib/patchwork/patchwork.h
lib/patchwork/tree_map.h

index a908080e0c2b56a234cafe2d08c10ac489029cbb..5ef1c1a1fb3a98c6879547f24906ca5411a207c7 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef PATCHWORK_H
-#define PATCHWORK_H
+#pragma once
 
 #include "render.h"
 #include <fdpgen/fdp.h>
@@ -32,4 +31,3 @@ extern void patchworkLayout(Agraph_t *g);
 #ifdef __cplusplus
 }
 #endif
-#endif
index 3659015f39cf76a964dc7ee2444e52801795ce66..349fdc1e11f725eec880fcfa02f6b4c5eb268b7c 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef TREE_MAP_H
-#define TREE_MAP_H
+#pragma once
 
 #include <sparse/SparseMatrix.h>
 
@@ -21,5 +20,3 @@ typedef struct rectangle_struct {
 extern rectangle* tree_map(int n, real *area, rectangle fillrec);
 
 extern rectangle rectangle_new(real x, real y, real width, real height);
-
-#endif