Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string: remove __used directive from ctype check functions #260

Merged
merged 1 commit into from
Feb 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
#include <asm-macros.h>
#include <mm/slab.h>

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'; }

Expand Down