From 8d309c273ce9a9c35763ba24d5ccafa49d18cc9d Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Tue, 22 Feb 2022 12:32:51 +0100 Subject: [PATCH] string: remove __used directive from ctype check functions With the unneeded the __used directive, the resulting binary is sprinkled with unnecessary copies of the functions code. Signed-off-by: Pawel Wieczorkiewicz --- include/string.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/string.h b/include/string.h index 769b1259..4c437d89 100644 --- a/include/string.h +++ b/include/string.h @@ -27,21 +27,21 @@ #include #include -static inline __used int isspace(int c) { return c == ' ' || c == '\t'; } +static inline int isspace(int c) { return c == ' ' || c == '\t'; } -static inline __used int iseostr(int c) { return c == '\0'; } +static inline int iseostr(int c) { return c == '\0'; } -static inline __used int ispunct(int c) { return c == '.'; } +static inline int ispunct(int c) { return c == '.'; } -static inline __used int isdigit(int c) { return c >= '0' && c <= '9'; } +static inline int isdigit(int c) { return c >= '0' && c <= '9'; } -static inline __used int isxdigit(int c) { +static inline int isxdigit(int c) { return (isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f')); } -static inline __used int isascii(int c) { return c >= 0 && c <= 127; } +static inline int isascii(int c) { return c >= 0 && c <= 127; } -static inline __used int islower(int c) { return c >= 'a' && c <= 'z'; } +static inline int islower(int c) { return c >= 'a' && c <= 'z'; } static inline int isupper(int c) { return c >= 'A' && c <= 'Z'; }