Changeset db25906 in mainline for kernel/generic/include/macros.h
- Timestamp:
- 2007-10-05T05:16:18Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c4e75ea
- Parents:
- f7fad5a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
rf7fad5a rdb25906 38 38 #include <arch/types.h> 39 39 40 #define is _digit(d) (((d) >= '0') && ((d) <= '9'))41 #define is _lower(c) (((c) >= 'a') && ((c) <= 'z'))42 #define is _upper(c) (((c) >= 'A') && ((c) <= 'Z'))43 #define is _alpha(c) (is_lower(c) || is_upper(c))44 #define is _alphanum(c) (is_alpha(c) || is_digit(c))45 #define is _white(c) (((c) == ' ') || ((c) == '\t') || ((c) == '\n') || \40 #define isdigit(d) (((d) >= '0') && ((d) <= '9')) 41 #define islower(c) (((c) >= 'a') && ((c) <= 'z')) 42 #define isupper(c) (((c) >= 'A') && ((c) <= 'Z')) 43 #define isalpha(c) (is_lower(c) || is_upper(c)) 44 #define isalphanum(c) (is_alpha(c) || is_digit(c)) 45 #define isspace(c) (((c) == ' ') || ((c) == '\t') || ((c) == '\n') || \ 46 46 ((c) == '\r')) 47 47
Note:
See TracChangeset
for help on using the changeset viewer.