aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-30 15:47:04 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-30 15:47:04 -0400
commitd853d7b8dc1586f6b2fad3bf05998bfbe935b8f3 (patch)
tree7ea504abe9c09b9d270f2d08bb5627093b1fc986 /src/stdlib
parent38d6189d4335bbcdc38f0c31cf769082b96f22fa (diff)
Fix visibility of gc_memory_stream
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/print.c5
-rw-r--r--src/stdlib/tomo.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/stdlib/print.c b/src/stdlib/print.c
index 793e1925..4b2066b7 100644
--- a/src/stdlib/print.c
+++ b/src/stdlib/print.c
@@ -1,5 +1,6 @@
// This file defines some of the helper functions used for printing values
#include "print.h"
+#include "util.h"
#include <stdio.h>
@@ -63,7 +64,7 @@ int _print_quoted(FILE *f, quoted_t quoted)
return (ssize_t)size;
}
- FILE *gc_memory_stream(char **buf, size_t *size) {
+ public FILE *gc_memory_stream(char **buf, size_t *size) {
gc_stream_t *stream = GC_MALLOC(sizeof(gc_stream_t));
stream->size = size;
stream->buffer = buf;
@@ -86,7 +87,7 @@ int _print_quoted(FILE *f, quoted_t quoted)
return size;
}
- FILE *gc_memory_stream(char **buf, size_t *size) {
+ public FILE *gc_memory_stream(char **buf, size_t *size) {
gc_stream_t *stream = GC_MALLOC(sizeof(gc_stream_t));
stream->size = size;
stream->buffer = buf;
diff --git a/src/stdlib/tomo.h b/src/stdlib/tomo.h
index 61dba404..567e5d14 100644
--- a/src/stdlib/tomo.h
+++ b/src/stdlib/tomo.h
@@ -24,6 +24,7 @@
#include "paths.h"
#include "patterns.h"
#include "pointers.h"
+#include "print.h"
#include "rng.h"
#include "siphash.h"
#include "structs.h"