From fa5d2cc97e687ee57a069763a3cce5ae85cee9a8 Mon Sep 17 00:00:00 2001 From: Flavio Amieiro Date: Tue, 3 Mar 2026 23:37:49 -0300 Subject: [PATCH] curl_ctype.h: fix spelling in a couple of locally used macros The `ISLOWHEXALHA` and `ISUPHEXALHA` macros were introduced in commit f65f750 and seem to be only referenced locally by the `ISXDIGIT` macro. Judging by the `ISALPHA` macro defined in the same file, it seems like the intention was to spell them as `IS.*HEXALPHA`. I noticed this while reading through the code and decided to open a PR, even if it is only a tiny change, just because I was already looking at it and it might be useful. If there is any reason not to merge this, please do close the PR. Closes #20810 --- lib/curl_ctype.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/curl_ctype.h b/lib/curl_ctype.h index 153a8f9c6c..65fe71927b 100644 --- a/lib/curl_ctype.h +++ b/lib/curl_ctype.h @@ -24,8 +24,8 @@ * ***************************************************************************/ -#define ISLOWHEXALHA(x) (((x) >= 'a') && ((x) <= 'f')) -#define ISUPHEXALHA(x) (((x) >= 'A') && ((x) <= 'F')) +#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f')) +#define ISUPHEXALPHA(x) (((x) >= 'A') && ((x) <= 'F')) #define ISLOWCNTRL(x) ((unsigned char)(x) <= 0x1f) #define IS7F(x) ((x) == 0x7f) @@ -36,7 +36,7 @@ #define ISGRAPH(x) (ISLOWPRINT(x) || (((x) > ' ') && ((x) <= 0x7e))) #define ISCNTRL(x) (ISLOWCNTRL(x) || IS7F(x)) #define ISALPHA(x) (ISLOWER(x) || ISUPPER(x)) -#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALHA(x) || ISUPHEXALHA(x)) +#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x)) #define ISODIGIT(x) (((x) >= '0') && ((x) <= '7')) #define ISALNUM(x) (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x)) #define ISUPPER(x) (((x) >= 'A') && ((x) <= 'Z'))