From 6eafa9fd3a49289d34007a018b6d1fba8e4b7e24 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 10 Jun 2025 00:47:32 -0600 Subject: libmisc: obj.h: Rework the LO_INTERFACE_* API to expose method funcs --- libmisc/fmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmisc/fmt.c') diff --git a/libmisc/fmt.c b/libmisc/fmt.c index 7c18ef5..175ad60 100644 --- a/libmisc/fmt.c +++ b/libmisc/fmt.c @@ -253,14 +253,14 @@ declare(16, 64); /* fmt_buf ********************************************************************/ -LO_IMPLEMENTATION_C(fmt_dest, struct fmt_buf, fmt_buf, static); +LO_IMPLEMENTATION_C(fmt_dest, struct fmt_buf, fmt_buf); -static void fmt_buf_putb(struct fmt_buf *buf, uint8_t b) { +void fmt_buf_putb(struct fmt_buf *buf, uint8_t b) { if (buf->len < buf->cap) ((uint8_t *)(buf->dat))[buf->len] = b; buf->len++; } -static size_t fmt_buf_tell(struct fmt_buf *buf) { +size_t fmt_buf_tell(struct fmt_buf *buf) { return buf->len; } -- cgit v1.2.3-2-g168b