]> granicus.if.org Git - graphviz/commitdiff
lib/dotgen: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 2 Nov 2021 03:59:57 +0000 (20:59 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 8 Nov 2021 04:03:02 +0000 (20:03 -0800)
lib/dotgen/aspect.h
lib/dotgen/dot.h
lib/dotgen/dotprocs.h

index 44ce279ff749698f4d0a523575872c3e8f7e8f73..68d07646f5ab23b399dba54dd72bf3189402961d 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef                ASPECT_H
-#define                ASPECT_H
+#pragma once
 
 typedef struct aspect_t {
     double targetAR;      /* target aspect ratio */
@@ -27,6 +26,3 @@ extern void rank3(graph_t * g, aspect_t * asp);
 extern void initEdgeTypes(graph_t * g);
 extern void init_UF_size(graph_t * g);
 extern int countDummyNodes(graph_t * g);
-
-#endif                         /* ASPECT_H */
-
index 90ab39cd963a59603cd76ad418c2013f2fa3d72f..53814f75c1210851e91ab059cdbd98676f3aa0b4 100644 (file)
@@ -8,11 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
-#ifndef                DOT_H
-#define                DOT_H
+#pragma once
 
 #include       "render.h"
 #include       <dotgen/dotprocs.h>
-
-#endif                         /* DOT_H */
index d9d22f78e6b42fd67a0c9bf75e3be3ad670481ff..6146d0e7b6aea8bfd2c701537637a86a0c48e10a 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef DOTPROCS_H
-#define DOTPROCS_H
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -81,4 +80,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif