From: Matthew Fernandez Date: Tue, 12 Oct 2021 00:13:08 +0000 (-0700) Subject: lib/gvpr: replace header guards with more modern #pragma once X-Git-Tag: 2.49.2~4^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86c249bc667104e121dac3b63a802b27ba9e1793;p=graphviz lib/gvpr: replace header guards with more modern #pragma once --- diff --git a/lib/gvpr/actions.h b/lib/gvpr/actions.h index 8273b4a69..ab2123e84 100644 --- a/lib/gvpr/actions.h +++ b/lib/gvpr/actions.h @@ -8,13 +8,12 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#pragma once + #ifdef __cplusplus extern "C" { #endif -#ifndef ACTIONS_H -#define ACTIONS_H - #include "cgraph.h" #include @@ -50,8 +49,6 @@ extern "C" { extern void gvstart_timer(void); extern double gvelapsed_sec(void); -#endif - #ifdef __cplusplus } #endif diff --git a/lib/gvpr/compile.h b/lib/gvpr/compile.h index a4a1bfcd2..36412f97c 100644 --- a/lib/gvpr/compile.h +++ b/lib/gvpr/compile.h @@ -8,13 +8,12 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#pragma once + #ifdef __cplusplus extern "C" { #endif -#ifndef COMPILE_H -#define COMPILE_H - #include #include #include @@ -92,8 +91,6 @@ extern "C" { extern Agnode_t *openNode(Agraph_t * g, char *name); extern Agedge_t *openEdge(Agraph_t* g, Agnode_t * t, Agnode_t * h, char *key); -#endif - #ifdef __cplusplus } #endif diff --git a/lib/gvpr/gprstate.h b/lib/gvpr/gprstate.h index 5e808ca05..d9fb051f2 100644 --- a/lib/gvpr/gprstate.h +++ b/lib/gvpr/gprstate.h @@ -8,13 +8,12 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#pragma once + #ifdef __cplusplus extern "C" { #endif -#ifndef GPRSTATE_H -#define GPRSTATE_H - #include #include "cgraph.h" #include @@ -79,8 +78,6 @@ extern "C" { extern void initGPRState(Gpr_t *, Vmalloc_t *); extern int validTVT(int); -#endif - #ifdef __cplusplus } #endif diff --git a/lib/gvpr/gvpr.h b/lib/gvpr/gvpr.h index 922016b4d..816ffe412 100644 --- a/lib/gvpr/gvpr.h +++ b/lib/gvpr/gvpr.h @@ -8,13 +8,12 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#pragma once + #ifdef __cplusplus extern "C" { #endif -#ifndef GVPR_H -#define GVPR_H - #ifdef _WIN32 # ifdef GVDLL # ifdef EXPORT_GVPR @@ -67,8 +66,6 @@ typedef struct { GVPR_API extern int gvpr (int argc, char *argv[], gvpropts* opts); -#endif - #ifdef __cplusplus } #endif diff --git a/lib/gvpr/parse.h b/lib/gvpr/parse.h index 6a2827cb8..c2d19e451 100644 --- a/lib/gvpr/parse.h +++ b/lib/gvpr/parse.h @@ -8,13 +8,12 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#pragma once + #ifdef __cplusplus extern "C" { #endif -#ifndef PARSE_H -#define PARSE_H - typedef enum { Begin = 0, End, BeginG, EndG, Node, Edge, Eof, Error } case_t; @@ -49,8 +48,6 @@ extern "C" { extern parse_prog *parseProg(char *, int); extern void freeParseProg (parse_prog *); -#endif - #ifdef __cplusplus } #endif diff --git a/lib/gvpr/queue.h b/lib/gvpr/queue.h index e097ffa1b..506aa1aee 100644 --- a/lib/gvpr/queue.h +++ b/lib/gvpr/queue.h @@ -8,13 +8,12 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#pragma once + #ifdef __cplusplus extern "C" { #endif -#ifndef QUEUE_H -#define QUEUE_H - #include "cgraph.h" typedef Dt_t queue; @@ -36,8 +35,6 @@ extern void* head(queue*); #define pull(q) (pop(q,1)) #define head(q) (pop(q,0)) -#endif - #ifdef __cplusplus } #endif