From 34ff5eda1200749e3c7eb5bbe609596928539cd2 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 22 Feb 2026 15:50:31 +1100 Subject: fix(dbg): resolve debug globals linkage --- include/tinyff/dbg.h | 4 ++-- src/dbg.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/tinyff/dbg.h b/include/tinyff/dbg.h index d109534..be5e04e 100644 --- a/include/tinyff/dbg.h +++ b/include/tinyff/dbg.h @@ -15,11 +15,11 @@ #include #include -static FILE *intff_debug_stream = NULL; +extern FILE *intff_debug_stream; // This flag is the same name as FF_DEBUG_ENABLED but is local to this file // Thats why it has the int prefix -static ff_flag intff_debug_enabled = 0; +extern ff_flag intff_debug_enabled; // Sets the debug stream. If stream is NULL, debug is disabled. ff_result ff_set_debug_stream(FILE *stream); diff --git a/src/dbg.c b/src/dbg.c index 15ecbf4..c580ea9 100644 --- a/src/dbg.c +++ b/src/dbg.c @@ -1,5 +1,8 @@ #include +FILE *intff_debug_stream = NULL; +ff_flag intff_debug_enabled = 0; + ff_result ff_set_debug_stream(FILE *stream) { intff_debug_stream = stream; -- cgit v1.2.3