Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 67 → Rev 68

/SPARTAN/trunk/include/panic.h
29,8 → 29,12
#ifndef __PANIC_H__
#define __PANIC_H__
 
#define PANIC "KERNEL PANIC: "
#ifndef NDEBUG
# define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
#else
# define panic(format, ...) panic_printf("Kernel panic: " format, ##__VA_ARGS__);
#endif
 
extern void panic(char *fmt, ...);
extern void panic_printf(char *fmt, ...);
 
#endif
/SPARTAN/trunk/include/print.h
37,7 → 37,7
 
static void print_str(const char *str);
static void print_fixed_hex(const __native num, const int width);
static void print_number(const __native num, const int base);
static void print_number(const __native num, const unsigned int base);
 
extern void putchar(const char c);
extern void printf(const char *fmt, ...);
/SPARTAN/trunk/include/list.h
68,7 → 68,7
link_initialize(link); \
}
 
#define list_empty(head) (((head)->next == (head))?1:0)
#define list_empty(head) (((head)->next == (head))?true:false)
 
#define list_get_instance(link,type,member) (type *)(((__u8*)(link))-((__u8*)&(((type *)NULL)->member)))
 
/SPARTAN/trunk/include/typedefs.h
34,6 → 34,8
 
typedef short bool;
 
typedef unsigned int size_t;
 
typedef struct config config_t;
typedef struct cpu_private_data cpu_private_data_t;
typedef struct cpu_info cpu_info_t;