summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-30 16:17:42 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-30 16:17:42 +1100
commit810ef260dbd916e29c683f0658050e6047c33aa1 (patch)
treed922f22db48091df495c7cd579607165d48e6d0e
parent0586891c02f3e038ba665450badc09e31f30ff28 (diff)
refactor(result): FF_FLAG using bool instead of binary
-rw-r--r--include/tinyff/result.h6
-rw-r--r--include/tinyff/stream.h1
2 files changed, 4 insertions, 3 deletions
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 <stdbool.h>
+
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 <stddef.h>
-#include <stdio.h>
#define FF_NULL_STREAM {0}