From fd1f2cdb22034410ca82021555bd2eb9b4604fbe Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Tue, 3 Mar 2026 09:37:43 +1100 Subject: feat(main): Create ff_ctx for global setting storage --- include/tinyff/dbg.h | 5 ----- include/tinyff/tinyff.h | 13 ++++++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/tinyff/dbg.h b/include/tinyff/dbg.h index be5e04e..3871c2b 100644 --- a/include/tinyff/dbg.h +++ b/include/tinyff/dbg.h @@ -15,11 +15,6 @@ #include #include -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 -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/include/tinyff/tinyff.h b/include/tinyff/tinyff.h index 48c4bbf..51298ef 100644 --- a/include/tinyff/tinyff.h +++ b/include/tinyff/tinyff.h @@ -1 +1,12 @@ -// TODO: Include all formats \ No newline at end of file +// TODO: Include all formats + + + +#include "common.h" +#include "stream.h" +typedef struct { + // Debug settings + ff_stream* ff_debug_stream; + ff_flag ff_debug_enabled; + +} ff_ctx; \ No newline at end of file -- cgit v1.2.3