aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-03 20:36:22 +0900
committernsfisis <nsfisis@gmail.com>2025-09-03 20:36:22 +0900
commit980d73ce25b116e645b16e9ed37dcf55fdffad7a (patch)
tree1039ecaa3a98b443a6818d660763051be1f5a54b /src/io.c
parent256cbd88c53d15884f3519ce75890c7bd1626cb2 (diff)
downloadducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.tar.gz
ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.tar.zst
ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.zip
feat: support native bool/true/false
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/io.c b/src/io.c
index ecbb0c9..c2a53de 100644
--- a/src/io.c
+++ b/src/io.c
@@ -48,7 +48,7 @@ InFile* infile_open(const char* filename) {
return in_file;
}
-BOOL infile_eof(InFile* f) {
+bool infile_eof(InFile* f) {
return f->buf[f->pos] == '\0';
}
@@ -87,11 +87,11 @@ char infile_next_char(InFile* f) {
return c;
}
-BOOL infile_consume_if(InFile* f, char expected) {
+bool infile_consume_if(InFile* f, char expected) {
if (infile_peek_char(f) == expected) {
infile_next_char(f);
- return TRUE;
+ return true;
} else {
- return FALSE;
+ return false;
}
}