diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:36:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:36:22 +0900 |
| commit | 980d73ce25b116e645b16e9ed37dcf55fdffad7a (patch) | |
| tree | 1039ecaa3a98b443a6818d660763051be1f5a54b /src/io.c | |
| parent | 256cbd88c53d15884f3519ce75890c7bd1626cb2 (diff) | |
| download | ducc-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } } |
