aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/io')
-rw-r--r--src/io/output.c5
-rw-r--r--src/io/output.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/src/io/output.c b/src/io/output.c
index 5f9bb3e..12b412d 100644
--- a/src/io/output.c
+++ b/src/io/output.c
@@ -9,6 +9,11 @@
#include "util/bits.h"
#include "util/memory.h"
+char *(*output_s)(curve_t *curve);
+char *(*output_s_separator)();
+char *(*output_s_begin)();
+char *(*output_s_end)();
+
FILE *out;
FILE *err;
FILE *verbose;
diff --git a/src/io/output.h b/src/io/output.h
index 1bf9aee..f68acfc 100644
--- a/src/io/output.h
+++ b/src/io/output.h
@@ -110,7 +110,7 @@ char *output_sjson_end();
* @param curve
* @return
*/
-char *(*output_s)(curve_t *curve);
+extern char *(*output_s)(curve_t *curve);
/**
* @brief Output curve to a FILE *out in configured format.
@@ -129,7 +129,7 @@ void output_o(curve_t *curve);
* @brief Output separator to a malloc'ed string in configured format.
* @return
*/
-char *(*output_s_separator)();
+extern char *(*output_s_separator)();
/**
* @brief Output separator to a FILE *out in configured format.
@@ -146,7 +146,7 @@ void output_o_separator();
* @brief Output header to a malloc'ed string in configured format.
* @return
*/
-char *(*output_s_begin)();
+extern char *(*output_s_begin)();
/**
* @brief Output header to a FILE *out in configured format.
@@ -163,7 +163,7 @@ void output_o_begin();
* @brief Output footer to a malloc'ed string in configured format.
* @return
*/
-char *(*output_s_end)();
+extern char *(*output_s_end)();
/**
* @brief Output footer to a FILE *out in configured format.