Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 1793 → Rev 1812

/trunk/kernel/generic/include/debug.h
60,11 → 60,7
# define ASSERT(expr)
#endif
 
#define STRING(arg) STRING_ARG(arg)
#define STRING_ARG(arg) #arg
 
#endif
 
/** @}
*/
 
/trunk/kernel/generic/include/macros.h
35,6 → 35,9
#ifndef __MACROS_H__
#define __MACROS_H__
 
#include <arch/types.h>
#include <typedefs.h>
 
#define is_digit(d) (((d) >= '0') && ((d)<='9'))
#define is_lower(c) (((c) >= 'a') && ((c) <= 'z'))
#define is_upper(c) (((c) >= 'A') && ((c) <= 'Z'))
51,13 → 54,15
uintptr_t e1 = s1+sz1;
uintptr_t e2 = s2+sz2;
 
return s1 < e2 && s2 < e1;
return (s1 < e2) && (s2 < e1);
}
/* Compute overlapping of physical addresses */
#define PA_overlaps(x,szx,y,szy) overlaps(KA2PA(x),szx,KA2PA(y), szy)
 
#define STRING(arg) STRING_ARG(arg)
#define STRING_ARG(arg) #arg
 
#endif
 
/** @}
*/