Changeset 02a99d2 in mainline for include


Ignore:
Timestamp:
2005-05-11T19:51:55Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69515260
Parents:
45671f48
Message:

NDEBUG debug symbol, ASSERT debug macro, fancier panic() in debug mode
indentation fixes, ASSERTs

Location:
include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • include/list.h

    r45671f48 r02a99d2  
    6969}
    7070
    71 #define list_empty(head) (((head)->next == (head))?1:0)
     71#define list_empty(head) (((head)->next == (head))?true:false)
    7272
    7373#define list_get_instance(link,type,member) (type *)(((__u8*)(link))-((__u8*)&(((type *)NULL)->member)))
  • include/panic.h

    r45671f48 r02a99d2  
    3030#define __PANIC_H__
    3131
    32 #define PANIC "KERNEL PANIC: "
     32#ifndef NDEBUG
     33#       define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
     34#else
     35#       define panic(format, ...) panic_printf("Kernel panic: " format, ##__VA_ARGS__);
     36#endif
    3337
    34 extern void panic(char *fmt, ...);
     38extern void panic_printf(char *fmt, ...);
    3539
    3640#endif
  • include/print.h

    r45671f48 r02a99d2  
    3838static void print_str(const char *str);
    3939static void print_fixed_hex(const __native num, const int width);
    40 static void print_number(const __native num, const int base);
     40static void print_number(const __native num, const unsigned int base);
    4141
    4242extern void putchar(const char c);
  • include/typedefs.h

    r45671f48 r02a99d2  
    3535typedef short bool;
    3636
     37typedef unsigned int size_t;
     38
    3739typedef struct config config_t;
    3840typedef struct cpu_private_data cpu_private_data_t;
Note: See TracChangeset for help on using the changeset viewer.