Changeset 5587cf7 in mainline for kernel


Ignore:
Timestamp:
2010-11-26T01:15:00Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ebba9a
Parents:
855e0d8
Message:
  • use portable constant defines for integer range constants
  • add portable constant defines INTN_C and UINTN_C (for native_t and unative_t)
  • remove explicit wchar_t typedef (use the typedef set by autotool)
  • remove non-standard printf() formatting macros (PRIp, PRIs, PRIdPTR, etc.)
  • introduce PRIua formatting macro (for atomic_count_t)
  • unify kernel and uspace formatting macros
Location:
kernel
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/abs32le/include/types.h

    r855e0d8 r5587cf7  
    5353} fncptr_t;
    5454
    55 #define PRIp   PRIx32  /**< Format for uintptr_t. */
    56 #define PRIs   PRIu32  /**< Format for size_t. */
     55#define INTN_C(c)   INT32_C(c)
     56#define UINTN_C(c)  UINT32_C(c)
     57
    5758#define PRIdn  PRId32  /**< Format for native_t. */
    5859#define PRIun  PRIu32  /**< Format for unative_t. */
    5960#define PRIxn  PRIx32  /**< Format for hexadecimal unative_t. */
     61#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    6062
    6163#endif
  • kernel/arch/amd64/include/types.h

    r855e0d8 r5587cf7  
    5050} fncptr_t;
    5151
    52 #define PRIp   PRIx64  /**< Format for uintptr_t. */
    53 #define PRIs   PRIu64  /**< Format for size_t. */
     52#define INTN_C(c)   INT64_C(c)
     53#define UINTN_C(c)  UINT64_C(c)
     54
    5455#define PRIdn  PRId64  /**< Format for native_t. */
    5556#define PRIun  PRIu64  /**< Format for unative_t. */
    5657#define PRIxn  PRIx64  /**< Format for hexadecimal unative_t. */
     58#define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5759
    5860#endif
  • kernel/arch/arm32/include/types.h

    r855e0d8 r5587cf7  
    5757} fncptr_t;
    5858
    59 #define PRIp   PRIx32  /**< Format for uintptr_t. */
    60 #define PRIs   PRIu32  /**< Format for size_t. */
     59#define INTN_C(c)   INT32_C(c)
     60#define UINTN_C(c)  UINT32_C(c)
     61
    6162#define PRIdn  PRId32  /**< Format for native_t. */
    6263#define PRIun  PRIu32  /**< Format for unative_t. */
    6364#define PRIxn  PRIx32  /**< Format for hexadecimal unative_t. */
     65#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    6466
    6567#endif
  • kernel/arch/ia32/include/types.h

    r855e0d8 r5587cf7  
    5050} fncptr_t;
    5151
    52 #define PRIp   PRIx32  /**< Format for uintptr_t. */
    53 #define PRIs   PRIu32  /**< Format for size_t. */
     52#define INTN_C(c)   INT32_C(c)
     53#define UINTN_C(c)  UINT32_C(c)
     54
    5455#define PRIdn  PRId32  /**< Format for native_t. */
    5556#define PRIun  PRIu32  /**< Format for unative_t. */
    5657#define PRIxn  PRIx32  /**< Format for hexadecimal unative_t. */
     58#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5759
    5860#endif
  • kernel/arch/ia64/include/types.h

    r855e0d8 r5587cf7  
    5252} __attribute__((may_alias)) fncptr_t;
    5353
    54 #define PRIp   PRIx64  /**< Format for uintptr_t. */
    55 #define PRIs   PRIu64  /**< Format for size_t. */
     54#define INTN_C(c)   INT64_C(c)
     55#define UINTN_C(c)  UINT64_C(c)
     56
    5657#define PRIdn  PRId64  /**< Format for native_t. */
    5758#define PRIun  PRIu64  /**< Format for unative_t. */
    5859#define PRIxn  PRIx64  /**< Format for hexadecimal unative_t. */
     60#define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5961
    6062#endif
  • kernel/arch/mips32/include/types.h

    r855e0d8 r5587cf7  
    5050} fncptr_t;
    5151
    52 #define PRIp   PRIx32  /**< Format for uintptr_t. */
    53 #define PRIs   PRIu32  /**< Format for size_t. */
     52#define INTN_C(c)   INT32_C(c)
     53#define UINTN_C(c)  UINT32_C(c)
     54
    5455#define PRIdn  PRId32  /**< Format for native_t. */
    5556#define PRIun  PRIu32  /**< Format for unative_t. */
    5657#define PRIxn  PRIx32  /**< Format for hexadecimal unative_t. */
     58#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5759
    5860#endif
  • kernel/arch/ppc32/include/types.h

    r855e0d8 r5587cf7  
    5050} fncptr_t;
    5151
    52 #define PRIp   PRIx32  /**< Format for uintptr_t. */
    53 #define PRIs   PRIu32  /**< Format for size_t. */
     52#define INTN_C(c)   INT32_C(c)
     53#define UINTN_C(c)  UINT32_C(c)
     54
    5455#define PRIdn  PRId32  /**< Format for native_t. */
    5556#define PRIun  PRIu32  /**< Format for unative_t. */
    5657#define PRIxn  PRIx32  /**< Format for hexadecimal unative_t. */
     58#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5759
    5860#endif
  • kernel/arch/sparc64/include/types.h

    r855e0d8 r5587cf7  
    5252typedef uint8_t asi_t;
    5353
    54 #define PRIp   PRIx64  /**< Format for uintptr_t. */
    55 #define PRIs   PRIu64  /**< Format for size_t. */
     54#define INTN_C(c)   INT64_C(c)
     55#define UINTN_C(c)  UINT64_C(c)
     56
    5657#define PRIdn  PRId64  /**< Format for native_t. */
    5758#define PRIun  PRIu64  /**< Format for unative_t. */
    5859#define PRIxn  PRIx64  /**< Format for hexadecimal unative_t. */
     60#define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5961
    6062#endif
  • kernel/generic/include/typedefs.h

    r855e0d8 r5587cf7  
    4040#include <arch/types.h>
    4141
    42 #define NULL    ((void *) 0)
     42#define NULL  ((void *) 0)
    4343
    4444#define false  0
     
    6969typedef int32_t devno_t;
    7070
    71 typedef int32_t wchar_t;
    72 
    7371typedef volatile uint8_t ioport8_t;
    7472typedef volatile uint16_t ioport16_t;
Note: See TracChangeset for help on using the changeset viewer.