From d853d7b8dc1586f6b2fad3bf05998bfbe935b8f3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 30 Mar 2025 15:47:04 -0400 Subject: Fix visibility of gc_memory_stream --- src/stdlib/print.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/stdlib/print.c') 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 @@ -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; -- cgit v1.2.3