From 810ef260dbd916e29c683f0658050e6047c33aa1 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Mon, 30 Mar 2026 16:17:42 +1100 Subject: refactor(result): FF_FLAG using bool instead of binary --- include/tinyff/result.h | 6 ++++-- include/tinyff/stream.h | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include/tinyff') diff --git a/include/tinyff/result.h b/include/tinyff/result.h index b2bf31c..7609f59 100644 --- a/include/tinyff/result.h +++ b/include/tinyff/result.h @@ -1,9 +1,11 @@ #ifndef RESULT_H #define RESULT_H +#include + typedef enum { - FF_TRUE = 0, - FF_FALSE = 1 + FF_TRUE = true, + FF_FALSE = false } FF_FLAG; typedef enum { diff --git a/include/tinyff/stream.h b/include/tinyff/stream.h index 9f12784..d8705dd 100644 --- a/include/tinyff/stream.h +++ b/include/tinyff/stream.h @@ -2,7 +2,6 @@ #define STREAM_H #include -#include #define FF_NULL_STREAM {0} -- cgit v1.2.3