]> granicus.if.org Git - graphviz/commitdiff
lib/glcomp: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 17 Oct 2021 01:28:38 +0000 (18:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 20 Oct 2021 01:37:21 +0000 (18:37 -0700)
Amusingly it looks like some time in the past (prior to version control) someone
got a little trigger happy find-and-replacing “CompText” with “CompFont”.

lib/glcomp/glcompbutton.h
lib/glcomp/glcompdefs.h
lib/glcomp/glcompfont.h
lib/glcomp/glcompimage.h
lib/glcomp/glcomplabel.h
lib/glcomp/glcompmouse.h
lib/glcomp/glcomppanel.h
lib/glcomp/glcompset.h
lib/glcomp/glcomptexture.h
lib/glcomp/glpangofont.h
lib/glcomp/glutils.h

index 15ba3ab7bc6cd68d771a0d36ac6013e8457008e5..7d9ced87a32c67351a187d01cee02beb622c6e87 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef GLCOMPBUTTON_H
-#define GLCOMPBUTTON_H
+
+#pragma once
 
 #include <glcomp/glcompdefs.h>
 
@@ -39,4 +39,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 44872905fa8ef12443d807034181eebe79fcf97a..a1a45b83bc26ab4fde7db41d43ce6b6560f77d48 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef GLCOMPDEFS_H
-#define GLCOMPDEFS_H
+
+#pragma once
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -389,4 +389,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 33e7224ae94cf3fa374ba6ee2b8966cb8661402d..ee794e7f99aa3f7cf4760403a574e579431f40e7 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef glCompFont_H
-#define glCompFont_H
+
+#pragma once
 
 #include <stdlib.h>
 #include <string.h>
@@ -39,4 +39,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 0551779845f8f89956b03af85dfb37900260e497..ba87a99acbd2c6c290b36a3ff2d08314b868b1fb 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef GLCOMPIMAGE_H
-#define GLCOMPIMAGE_H
+
+#pragma once
 
 #include <glcomp/glcompdefs.h>
 
@@ -29,4 +29,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index c2295fc5f372fbeabd702c3553fb56f29dfd5ec0..fb0eb037a5d908afca382cdf519a0f4db51aa6d3 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef GLCOMPLABEL_H
-#define GLCOMPLABEL_H
+
+#pragma once
 
 #include <glcomp/glcompdefs.h>
 
@@ -25,4 +25,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index e732ae9e1732cf72b0c39a573103f70cfccca0f8..a45bd9afa78a0174ea0900219843b34549008a54 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef GLCOMPMOUSE_H
-#define GLCOMPMOUSE_H
+
+#pragma once
 
 #include <glcomp/glcompdefs.h>
 
@@ -35,4 +35,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 2587688f9b35676dbfadfcbd89dd270a76e4c40b..04d2af3e3b7bb1bfd2fae6d615ed3db8db19b38b 100644 (file)
@@ -7,8 +7,8 @@
  *
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
-#ifndef GLCOMPPANEL_H
-#define GLCOMPPANEL_H
+
+#pragma once
 
 #include <glcomp/glcompdefs.h>
 
@@ -42,4 +42,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 6159e7647c8a5dde9ec7018d9c64e1d4eec4fafe..973533f6d6400cdbb5e7ca560fcbc5e49dd44d44 100644 (file)
@@ -11,8 +11,8 @@
 /*Open GL basic component set
   includes glPanel,glCompButton,glCompCustomButton,clCompLabel,glCompStyle
 */
-#ifndef GLCOMPSET_H
-#define GLCOMPSET_H
+
+#pragma once
 
 #include <glcomp/glcompfont.h>
 #include <glcomp/glcomptextpng.h>
@@ -37,4 +37,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index dfd69bdede7bac832f0c2fa34ec4de9c6658f477..8b940b153ad27eb55f1e3386ed98582d0df91851 100644 (file)
@@ -12,8 +12,7 @@
   includes glPanel,glCompButton,glCompCustomButton,clCompLabel,glCompStyle
 */
 
-#ifndef glCompFontURE_H
-#define glCompFontURE_H
+#pragma once
 
 #ifdef _WIN32
 #include "windows.h"
@@ -39,4 +38,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index 0b9642f8172ab824b74b7bfdf94e41a4b002b36c..afc28b020e6b534ca0feb1da8b6842c70689123d 100644 (file)
@@ -8,8 +8,8 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GLPANGOFONT_H
-#define GLPANGOFONT_H
+#pragma once
+
 #include <cairo/cairo.h>
 #include <pango/pangocairo.h>
 #include <png.h>
@@ -30,4 +30,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif
index a25236be65a5611d17ec7decffb6aa2bd9dfc2c1..8c6fc99bb9f8200d241a5f510e69325156857495 100644 (file)
@@ -8,8 +8,8 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifndef GLUTILS_H
-#define GLUTILS_H
+#pragma once
+
 #ifdef _WIN32
 #include "windows.h"
 #endif
@@ -62,4 +62,3 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
-#endif