Changeset 2944 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Jan 13, 2007, 4:55:40 PM (19 years ago)
Author:
bird
Message:

split up kLdrHlp.c and kLdr.c to make it more flexible (like using the module interpreters without the dynamic loader bit and similar).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2891 r2944  
    3232#endif
    3333
    34 /* kLdr depend on size_t, [u]intNN_t, [u]intptr_t and some related constants. */
    35 #include <sys/types.h>
    36 #include <stddef.h>
    37 #ifdef _MSC_VER
    38   typedef signed char         int8_t;
    39   typedef unsigned char       uint8_t;
    40   typedef signed short        int16_t;
    41   typedef unsigned short      uint16_t;
    42   typedef signed int          int32_t;
    43   typedef unsigned int        uint32_t;
    44   typedef signed __int64      int64_t;
    45   typedef unsigned __int64    uint64_t;
    46   typedef int64_t             intmax_t;
    47   typedef uint64_t            uintmax_t;
    48 # define UINT16_C(c)          (c ## U)
    49 # define UINT32_C(c)          (c ## U)
    50 # define UINT64_C(c)          (c ## ULL)
    51 #else
    52 # include <stdint.h>
    53 #endif
     34/*
     35 * kLdr depend on size_t, [u]intNN_t, [u]intptr_t and some related constants.
     36 * If KLDR_NO_KLDR_H_INCLUDES is defined, these has already been defined.
     37 */
     38#ifndef KLDR_NO_KLDR_H_INCLUDES
     39# include <sys/types.h>
     40# include <stddef.h>
     41# ifdef _MSC_VER
     42   typedef signed char          int8_t;
     43   typedef unsigned char        uint8_t;
     44   typedef signed short         int16_t;
     45   typedef unsigned short       uint16_t;
     46   typedef signed int           int32_t;
     47   typedef unsigned int         uint32_t;
     48   typedef signed __int64       int64_t;
     49   typedef unsigned __int64     uint64_t;
     50   typedef int64_t              intmax_t;
     51   typedef uint64_t             uintmax_t;
     52#  define UINT16_C(c)           (c ## U)
     53#  define UINT32_C(c)           (c ## U)
     54#  define UINT64_C(c)           (c ## ULL)
     55# else
     56#  include <stdint.h>
     57# endif
     58#endif /* !KLDR_NO_KLDR_H_INCLUDES */
    5459
    5560
Note: See TracChangeset for help on using the changeset viewer.