/* geometric functions (e.g. on points and boxes) with application to, but
* no specific dependence on graphs */
-#ifndef GV_ARITH_H
-#define GV_ARITH_H
+#pragma once
/* for sincos */
#ifndef _GNU_SOURCE
#ifdef __cplusplus
}
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_COLOR_H
-#define GV_COLOR_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_COLORPROCS_H
-#define GV_COLORPROCS_H
+#pragma once
#include "color.h"
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_CONST_H
-#define GV_CONST_H
+#pragma once
#define SMALLBUF 128
#define LPAREN '('
#define FONTSIZE_MUCH_TOO_SMALL 0.15
/* fontsize at which text is rendered by a simple line */
#define FONTSIZE_TOO_SMALL 1.5
-
-#endif
/* geometric types and macros (e.g. points and boxes) with application to, but
* no specific dependence on graphs */
-#ifndef GV_GEOM_H
-#define GV_GEOM_H
+#pragma once
#include "arith.h"
#ifdef __cplusplus
}
#endif
-
-#endif
/* geometric functions (e.g. on points and boxes) with application to, but
* no specific dependence on graphs */
-#ifndef GV_GEOMPROCS_H
-#define GV_GEOMPROCS_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GLOBALS_H
-#define GLOBALS_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef HTMLLEX_H
-#define HTMLLEX_H
-
#include <agxbuf.h>
extern int initHTMLlexer(char *, agxbuf *, htmlenv_t *);
extern int clearHTMLlexer(void);
void htmlerror(const char *);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef TABLE_H
-#define TABLE_H
-
#define FIXED_FLAG 1
#define HALIGN_RIGHT (1 << 1)
#define HALIGN_LEFT (1 << 2)
extern int html_path(node_t * n, port* p, int side, boxf * rv, int *k);
extern int html_inside(node_t * n, pointf p, edge_t * e);
-#endif
-
#ifdef __cplusplus
}
#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef INTSET_H
-#define INTSET_H
+#pragma once
#include <cdt.h>
extern Dt_t* openIntSet (void);
extern void addIntSet (Dt_t*, int);
extern int inIntSet (Dt_t*, int);
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_LOGIC_H
-#define GV_LOGIC_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-
-#endif
-
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_MACROS_H
-#define GV_MACROS_H
+#pragma once
#ifndef NOTUSED
#define NOTUSED(var) (void) var
#define XPAD(d) ((d).x += 4*GAP)
#define YPAD(d) ((d).y += 2*GAP)
#define PAD(d) {XPAD(d); YPAD(d);}
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_MEMORY_H
-#define GV_MEMORY_H
+#pragma once
#include <stdlib.h>
#ifdef __cplusplus
}
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef _POINTSET_H
-#define _POINTSET_H 1
+#pragma once
#include <cdt.h>
#include <geom.h>
#ifdef __cplusplus
}
#endif
-
-#endif /* _POINTSET_H */
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_RENDER_H
-#define GV_RENDER_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TEXTSPAN_H
-#define TEXTSPAN_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_TIMING_H
-#define GV_TIMING_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GV_TYPES_H
-#define GV_TYPES_H
+#pragma once
/* Define if you want CGRAPH */
#define WITH_CGRAPH 1
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef USERSHAPE_H
-#define USERSHAPE_H
+#pragma once
#include "cdt.h"
#ifdef __cplusplus
}
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef _UTILS_H
-#define _UTILS_H 1
+#pragma once
#include "config.h"
#ifdef __cplusplus
}
#endif
-
-#endif /* _UTILS_H */