From b46cc2087ffc762dc20dd57ed06f0c625d2e942d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sun, 17 May 2026 18:36:41 +0200 Subject: [PATCH] change is_word() return type from char to bool. Saves 52 bytes. --- httpd/httpd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/httpd/httpd.c b/httpd/httpd.c index 203b533..d273e89 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -116,7 +116,7 @@ char strcmp(__xdata uint8_t *c, __code uint8_t * __xdata d) } -char is_word(__xdata uint8_t *xdata_str_p, __code uint8_t * __xdata code_str_p) +bool is_word(__xdata uint8_t *xdata_str_p, __code uint8_t * __xdata code_str_p) { uint8_t u, c; @@ -126,12 +126,12 @@ char is_word(__xdata uint8_t *xdata_str_p, __code uint8_t * __xdata code_str_p) if (c == '\0') { if (u != '\0' && u != ' ' && u != '\t' && u != ':' && u != '?' && u != '=' && u != '\n' && u != '\r') - return 0; - return 1; + return false; + return true; } if (c != u) { - return 0; + return false; } } }