summaryrefslogtreecommitdiff
path: root/lib/graph.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-10 12:37:02 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-10 12:37:02 -0400
commite53a4c09eb78e4c5a8365f1328a69ba7f9ff8992 (patch)
tree3c252af9ffafacab8392bf864270dcd034ed07ed /lib/graph.h
parent609fb52b670d8ed74584a988b8c63da82d8d523b (diff)
parent1810103bc9ac4c9a8d432d113f5ca6eae6560fb4 (diff)
downloadc++-e53a4c09eb78e4c5a8365f1328a69ba7f9ff8992.tar.gz
c++-e53a4c09eb78e4c5a8365f1328a69ba7f9ff8992.tar.bz2
c++-e53a4c09eb78e4c5a8365f1328a69ba7f9ff8992.zip
Merge branch 'master' of m5:/srv/git/wolff
Diffstat (limited to 'lib/graph.h')
-rw-r--r--lib/graph.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/graph.h b/lib/graph.h
index 9c80dd6..beb7f4c 100644
--- a/lib/graph.h
+++ b/lib/graph.h
@@ -1,10 +1,16 @@
+#pragma once
+
#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include "types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
v_t ne;
v_t nv;
@@ -13,8 +19,10 @@ typedef struct {
} graph_t;
graph_t *graph_create_square(D_t D, L_t L);
-
graph_t *graph_add_ext(const graph_t *G);
-
void graph_free(graph_t *h);
+#ifdef __cplusplus
+}
+#endif
+