]> granicus.if.org Git - graphviz/commitdiff
use more modern #pragma once guards in lib/pathplan
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Jun 2021 02:07:10 +0000 (19:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 00:09:34 +0000 (17:09 -0700)
lib/pathplan/pathgeom.h
lib/pathplan/pathplan.h
lib/pathplan/pathutil.h
lib/pathplan/solvers.h
lib/pathplan/vis.h
lib/pathplan/vispath.h

index 6d5eb4b296cada0243987be7f1e952e6d278c8b3..24a0d415d205b7d69432b1c930798f808c7b074b 100644 (file)
@@ -8,9 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
-#ifndef _PATHGEOM_INCLUDE
-#define _PATHGEOM_INCLUDE
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -46,4 +44,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index a2e8773ea1751a9d84ef73b066f37f7e506b0f98..c2648d60a31cb4ea0f048cd786c786a0adaee57b 100644 (file)
@@ -8,10 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
-
-#ifndef _PATH_INCLUDE
-#define _PATH_INCLUDE
+#pragma once
 
 #include "pathgeom.h"
 
@@ -43,4 +40,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 354be12c4e6e05137942bc4a51af0dc9ae7f5ab4..e04bb1d9a40cfe0dc3c7b3627cacbd6716a514af 100644 (file)
@@ -8,10 +8,8 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
 
-
-#ifndef _PATHUTIL_INCLUDE
-#define _PATHUTIL_INCLUDE
 #define _BLD_pathplan 1
 
 #include "pathplan.h"
@@ -47,4 +45,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 1fff36dfdf85a4c39cc037babada56d35aa98133..010f44c8cdd401ffa702be8fa319ca48c8f558a8 100644 (file)
@@ -8,21 +8,16 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-
-
-#ifndef _SOLVERS_INCLUDE
-#define _SOLVERS_INCLUDE
-
     extern int solve3(double *, double *);
     extern int solve2(double *, double *);
     extern int solve1(double *, double *);
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index 7e5f36acdf605c6b01f77d73350679aa84a96d59..f637dcf274bf93093cbe4e6b0fc7a00cd0600180 100644 (file)
@@ -8,9 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
-#ifndef VISIBILITY_H
-#define VISIBILITY_H
+#pragma once
 
 #include <assert.h>
 #include <math.h>
@@ -58,4 +56,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 61450477762c55f3eab206d7e03fb19dc3e991a2..2ce73d28de289511eac3d3e22c366f09e42b80cf 100644 (file)
@@ -8,10 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
-
-#ifndef _VIS_INCLUDE
-#define _VIS_INCLUDE
+#pragma once
 
 #include <pathgeom.h>
 
@@ -46,4 +43,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif