60b217a03b
arch/x86/boot/isdigit.h was renamed to arch/x86/boot/ctype.h in
6238b47b58
("x86, setup: move isdigit.h to ctype.h, header files on top.")
Adjust guards too.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Link: http://lkml.kernel.org/r/1420267941-26390-1-git-send-email-kuleshovmail@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
21 lines
284 B
C
21 lines
284 B
C
#ifndef BOOT_CTYPE_H
|
|
#define BOOT_CTYPE_H
|
|
|
|
static inline int isdigit(int ch)
|
|
{
|
|
return (ch >= '0') && (ch <= '9');
|
|
}
|
|
|
|
static inline int isxdigit(int ch)
|
|
{
|
|
if (isdigit(ch))
|
|
return true;
|
|
|
|
if ((ch >= 'a') && (ch <= 'f'))
|
|
return true;
|
|
|
|
return (ch >= 'A') && (ch <= 'F');
|
|
}
|
|
|
|
#endif
|