From 980d73ce25b116e645b16e9ed37dcf55fdffad7a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Sep 2025 20:36:22 +0900 Subject: feat: support native bool/true/false --- src/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index 595f2c7..d3b85a5 100644 --- a/src/common.c +++ b/src/common.c @@ -9,11 +9,11 @@ void fatal_error(const char* msg, ...) { exit(1); } -BOOL str_ends_with(const char* s, const char* suffix) { +bool str_ends_with(const char* s, const char* suffix) { size_t l1 = strlen(s); size_t l2 = strlen(suffix); if (l1 < l2) - return FALSE; + return false; return strcmp(s + l1 - l2, suffix) == 0; } -- cgit v1.2.3-70-g09d2