diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/ipxe/src/include/ctype.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/ipxe/src/include/ctype.h')
-rw-r--r-- | qemu/roms/ipxe/src/include/ctype.h | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/qemu/roms/ipxe/src/include/ctype.h b/qemu/roms/ipxe/src/include/ctype.h deleted file mode 100644 index 0d79ecd19..000000000 --- a/qemu/roms/ipxe/src/include/ctype.h +++ /dev/null @@ -1,117 +0,0 @@ -#ifndef _CTYPE_H -#define _CTYPE_H - -/** @file - * - * Character types - * - */ - -FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); - -/** - * Check if character is a decimal digit - * - * @v character ASCII character - * @ret is_digit Character is a decimal digit - */ -static inline int isdigit ( int character ) { - - return ( ( character >= '0' ) && ( character <= '9' ) ); -} - -/** - * Check if character is a hexadecimal digit - * - * @v character ASCII character - * @ret is_xdigit Character is a hexadecimal digit - */ -static inline int isxdigit ( int character ) { - - return ( ( ( character >= '0' ) && ( character <= '9' ) ) || - ( ( character >= 'A' ) && ( character <= 'F' ) ) || - ( ( character >= 'a' ) && ( character <= 'f' ) ) ); -} - -/** - * Check if character is an upper-case letter - * - * @v character ASCII character - * @ret is_upper Character is an upper-case letter - */ -static inline int isupper ( int character ) { - - return ( ( character >= 'A' ) && ( character <= 'Z' ) ); -} - -/** - * Check if character is a lower-case letter - * - * @v character ASCII character - * @ret is_lower Character is a lower-case letter - */ -static inline int islower ( int character ) { - - return ( ( character >= 'a' ) && ( character <= 'z' ) ); -} - -/** - * Check if character is alphabetic - * - * @v character ASCII character - * @ret is_alpha Character is alphabetic - */ -static inline int isalpha ( int character ) { - - return ( isupper ( character ) || islower ( character ) ); -} - -/** - * Check if character is alphanumeric - * - * @v character ASCII character - * @ret is_alnum Character is alphanumeric - */ -static inline int isalnum ( int character ) { - - return ( isalpha ( character ) || isdigit ( character ) ); -} - -/** - * Check if character is printable - * - * @v character ASCII character - * @ret is_print Character is printable - */ -static inline int isprint ( int character ) { - - return ( ( character >= ' ' ) && ( character <= '~' ) ); -} - -/** - * Convert character to lower case - * - * @v character Character - * @v character Lower-case character - */ -static inline int tolower ( int character ) { - - return ( isupper ( character ) ? - ( character - 'A' + 'a' ) : character ); -} - -/** - * Convert character to upper case - * - * @v character Character - * @v character Upper-case character - */ -static inline int toupper ( int character ) { - - return ( islower ( character ) ? - ( character - 'a' + 'A' ) : character ); -} - -extern int isspace ( int character ); - -#endif /* _CTYPE_H */ |