Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2712 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2089
Line 34... Line 34...
34
 
34
 
35
#ifndef KERN_MACROS_H_
35
#ifndef KERN_MACROS_H_
36
#define KERN_MACROS_H_
36
#define KERN_MACROS_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <typedefs.h>
-
 
40
 
39
 
41
#define is_digit(d) (((d) >= '0') && ((d) <= '9'))
40
#define is_digit(d) (((d) >= '0') && ((d) <= '9'))
42
#define is_lower(c) (((c) >= 'a') && ((c) <= 'z'))
41
#define is_lower(c) (((c) >= 'a') && ((c) <= 'z'))
43
#define is_upper(c) (((c) >= 'A') && ((c) <= 'Z'))
42
#define is_upper(c) (((c) >= 'A') && ((c) <= 'Z'))
44
#define is_alpha(c) (is_lower(c) || is_upper(c))
43
#define is_alpha(c) (is_lower(c) || is_upper(c))