Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5587cf7 in mainline for kernel/arch/abs32le/include/types.h


Ignore:
Timestamp:
2010-11-26T01:15:00Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
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
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.