]> granicus.if.org Git - graphviz/commitdiff
libgvc: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Oct 2021 04:12:10 +0000 (21:12 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Oct 2021 20:23:05 +0000 (13:23 -0700)
14 files changed:
lib/gvc/gvc.h
lib/gvc/gvcext.h
lib/gvc/gvcint.h
lib/gvc/gvcjob.h
lib/gvc/gvcommon.h
lib/gvc/gvconfig.h
lib/gvc/gvcproc.h
lib/gvc/gvio.h
lib/gvc/gvplugin.h
lib/gvc/gvplugin_device.h
lib/gvc/gvplugin_layout.h
lib/gvc/gvplugin_loadimage.h
lib/gvc/gvplugin_render.h
lib/gvc/gvplugin_textlayout.h

index 2a085fba05033c67f6bdbc36037421a0b278a20c..b8cec455367b1745d283bfea31a21bb41769f592 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef                        GVC_H
-#define                        GVC_H
+#pragma once
 
 #include <stdbool.h>
 
@@ -128,5 +127,3 @@ GVC_API int gvToolTred(graph_t *g);
 #ifdef __cplusplus
 }
 #endif
-
-#endif                 /* GVC_H */
index 0f7029b42b8342b937b3046642ea99959674a447..9a6b7761277f75c291eb98b6977c826340b614d4 100644 (file)
@@ -10,8 +10,7 @@
 
 /* Common header used by both clients and plugins */
 
-#ifndef GVCEXT_H
-#define GVCEXT_H
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -67,7 +66,3 @@ extern lt_symlist_t lt_preloaded_symbols[];
 #ifdef __cplusplus
 }
 #endif
-
-
-
-#endif
index 86ec3404f25a8a1fb2eb446e88b28687f7c92626..ed48b153db989a3239eb3d80afa35fb496996040 100644 (file)
@@ -10,8 +10,7 @@
 
 /* Common header used by both clients and plugins */
 
-#ifndef GVCINT_H
-#define GVCINT_H
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -153,4 +152,3 @@ extern void gvFreeCloneGVC (GVC_t *);
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVCINT_H */
index 934ccea00c28cc524404ab26eedf9eb1b5dce316..c9b3690ac78816de19f51f6ca6ad079456b88733 100644 (file)
@@ -10,8 +10,7 @@
 
 /* Common header used by both clients and plugins */
 
-#ifndef GVCJOB_H
-#define GVCJOB_H
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -371,4 +370,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVCJOB_H */
index c0db6191af2846ff0aaee4b8ad437347908273b4..0edb4edeac0ecd1c613694b7c2026565883366d3 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVCOMMON_H
-#define GVCOMMON_H
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -34,4 +33,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVCOMMON_H */
index 7e9a95b67b1187dcca2f6c03107f322a01bae221..9db1e802df243ffd162e6248aee77e025f0df4a3 100644 (file)
@@ -10,8 +10,7 @@
 
 /* Header used by plugins */
 
-#ifndef GVCONFIG_H
-#define GVCONFIG_H
+#pragma once
 
 #include "gvplugin.h"
 
@@ -24,4 +23,3 @@ extern void gvconfig_plugin_install_from_library(GVC_t * gvc, char *path, gvplug
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVCONFIG_H */
index 04ba2195f4bc8f06bb0f4fa99332f5f1e4c38281..d3ce7feab17f98cee4f315c09e7b35fa26e9d3ec 100644 (file)
@@ -10,8 +10,7 @@
 
 /* This is the public header for the callers of libgvc */
 
-#ifndef GVCPROC_H
-#define GVCPROC_H
+#pragma once
 
 /* these are intended to be private entry points - see gvc.h for the public ones */
 
     void gv_argvlist_set_item(gv_argvlist_t *list, int index, char *item);
     void gv_argvlist_reset(gv_argvlist_t *list);
     void gv_argvlist_free(gv_argvlist_t *list);
-
-#endif                         /* GVCPROC_H */
index fadc431f7ac4f9462485bba3ee9a9091c09f607f..1be27c037e0bd65d860791cc1c4a64fadd388495 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVDEVICE_H
-#define GVDEVICE_H
+#pragma once
 
 #include "gvcjob.h"
 
@@ -54,5 +53,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-
-#endif                         /* GVDEVICE_H */
index 2dc00d08b8f43e93631b26d2764aadb40c7ce585..4aa2871e9d43ea76ac7f3ddb8db9c1f6a894222f 100644 (file)
@@ -10,8 +10,7 @@
 
 /* Header used by plugins */
 
-#ifndef GVPLUGIN_H
-#define GVPLUGIN_H
+#pragma once
 
 #ifdef __cplusplus
 extern "C" {
@@ -57,4 +56,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVPLUGIN_H */
index e10ab2c7e7089b0f40de7d1e5eb4ce28bf2f47d0..60c4ea34609115f024f596c78b7c2150625f3003 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVDEVICE_PLUGIN_H
-#define GVDEVICE_PLUGIN_H
+#pragma once
 
 #include "types.h"
 #include "gvplugin.h"
@@ -28,4 +27,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVDEVICE_PLUGIN_H */
index 84d37610cbf83646c06c622473a2a97233517835..9bbb155eefc3f0703eb95745f02ca699f7360910 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVPLUGIN_LAYOUT_H
-#define GVPLUGIN_LAYOUT_H
+#pragma once
 
 #include "types.h"
 #include "gvplugin.h"
@@ -27,4 +26,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVPLUGIN_LAYOUT_H */
index a73f9aea2fba642efdc763247bddb8b402f3205a..227b9361026c4045847e2f6b752ae3ccd2d26c8c 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVPLUGIN_IMAGELOAD_H
-#define GVPLUGIN_IMAGELOAD_H
+#pragma once
 
 #include "types.h"
 #include "gvplugin.h"
@@ -47,4 +46,3 @@ GVPLUGIN_LOADIMAGE_API void gvusershape_file_release(usershape_t *us);
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVPLUGIN_IMAGELOAD_H */
index 232c895c6856d4348066692b1862ee5bfb1f64b2..342adbf39cf80c5761e9f392da70ee382cffa876 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVPLUGIN_RENDER_H
-#define GVPLUGIN_RENDER_H
+#pragma once
 
 #include "types.h"
 #include "gvplugin.h"
@@ -58,4 +57,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVPLUGIN_RENDER_H */
index 645a0b0ecb7de981d188a26a6967b30904ecc171..47c40c543272ff69d0e9dadd236ed2061a334cb3 100644 (file)
@@ -8,8 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GVPLUGIN_TEXTLAYOUT_H
-#define GVPLUGIN_TEXTLAYOUT_H
+#pragma once
 
 #include "types.h"
 #include "gvplugin.h"
@@ -27,4 +26,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVPLUGIN_TEXTLAYOUT_H */