From 53fbab1f44fcb42f52d6470689f3574799401462 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 20 Oct 2021 20:29:15 +0530 Subject: [PATCH] Prefer inline for single liner --- src/nnn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 238af1aa..d4e02619 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -167,8 +167,8 @@ #define ISBLANK(x) ((x) == ' ' || (x) == '\t') #define TOUPPER(ch) (((ch) >= 'a' && (ch) <= 'z') ? ((ch) - 'a' + 'A') : (ch)) #define TOLOWER(ch) (((ch) >= 'A' && (ch) <= 'Z') ? ((ch) - 'A' + 'a') : (ch)) -#define ISUPPER_(ch) ((ch) >= 'A' && (ch) <= 'Z') -#define ISLOWER_(ch) ((ch) >= 'a' && (ch) <= 'z') +#define ISUPPER_(ch) ((ch) >= 'A' && (ch) <= 'Z') +#define ISLOWER_(ch) ((ch) >= 'a' && (ch) <= 'z') #define CMD_LEN_MAX (PATH_MAX + ((NAME_MAX + 1) << 1)) #define ALIGN_UP(x, A) ((((x) + (A) - 1) / (A)) * (A)) #define READLINE_MAX 256 @@ -1016,7 +1016,7 @@ static bool is_suffix(const char *restrict str, const char *restrict suffix) return (xstrcmp(str + (lenstr - lensuffix), suffix) == 0); } -static bool is_prefix(const char *restrict str, const char *restrict prefix, size_t len) +static inline bool is_prefix(const char *restrict str, const char *restrict prefix, size_t len) { return !strncmp(str, prefix, len); } -- 2.48.1