xed-portability.h File Reference

#include "xed-common-hdrs.h"
#include "xed-types.h"

Go to the source code of this file.

Defines

#define XED_CAST(x, y)   ((x) (y))
#define XED_FMT_08X   "%08x"
#define XED_FMT_9U   "%9u"
#define XED_FMT_D   "%d"
#define XED_FMT_LD   "%lld"
#define XED_FMT_LU   "%llu"
#define XED_FMT_LU12   "%12llu"
#define XED_FMT_LX   "%llx"
#define XED_FMT_LX16   "%016llx"
#define XED_FMT_SIZET   "%u"
#define XED_FMT_U   "%u"
#define XED_FMT_X   "%x"
#define XED_INLINE   __inline
#define XED_MAX(a, b)   (((a) > (b)) ? (a):(b))
#define XED_MIN(a, b)   (((a) < (b)) ? (a):(b))
#define XED_NOINLINE   __declspec(noinline)
#define XED_NORETURN   __declspec(noreturn)
#define XED_REINTERPRET_CAST(x, y)   ((x) (y))
#define XED_STATIC_CAST(x, y)   ((x) (y))

Functions

XED_DLL_EXPORT void xed_strcat (char *dst, const char *src)
XED_DLL_EXPORT void xed_strcpy (char *dst, const char *src)
XED_DLL_EXPORT xed_uint_t xed_strlen (const char *s)
XED_DLL_EXPORT int xed_strncat (char *dst, const char *src, int len)
 returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .
XED_DLL_EXPORT int xed_strncpy (char *dst, const char *src, int len)
 returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .


Detailed Description

Definition in file xed-portability.h.


Define Documentation

#define XED_CAST ( x,
 )     ((x) (y))

Definition at line 42 of file xed-portability.h.

#define XED_FMT_08X   "%08x"

Definition at line 118 of file xed-portability.h.

#define XED_FMT_9U   "%9u"

Definition at line 121 of file xed-portability.h.

#define XED_FMT_D   "%d"

Definition at line 119 of file xed-portability.h.

#define XED_FMT_LD   "%lld"

Definition at line 146 of file xed-portability.h.

#define XED_FMT_LU   "%llu"

Definition at line 144 of file xed-portability.h.

#define XED_FMT_LU12   "%12llu"

Definition at line 145 of file xed-portability.h.

#define XED_FMT_LX   "%llx"

Definition at line 143 of file xed-portability.h.

#define XED_FMT_LX16   "%016llx"

Definition at line 147 of file xed-portability.h.

#define XED_FMT_SIZET   "%u"

Definition at line 133 of file xed-portability.h.

#define XED_FMT_U   "%u"

Definition at line 120 of file xed-portability.h.

#define XED_FMT_X   "%x"

Definition at line 117 of file xed-portability.h.

#define XED_INLINE   __inline

Definition at line 177 of file xed-portability.h.

#define XED_MAX ( a,
 )     (((a) > (b)) ? (a):(b))

Definition at line 188 of file xed-portability.h.

#define XED_MIN ( a,
 )     (((a) < (b)) ? (a):(b))

Definition at line 189 of file xed-portability.h.

#define XED_NOINLINE   __declspec(noinline)

Definition at line 181 of file xed-portability.h.

#define XED_NORETURN   __declspec(noreturn)

Definition at line 183 of file xed-portability.h.

#define XED_REINTERPRET_CAST ( x,
 )     ((x) (y))

Definition at line 41 of file xed-portability.h.

#define XED_STATIC_CAST ( x,
 )     ((x) (y))

Definition at line 40 of file xed-portability.h.


Function Documentation

XED_DLL_EXPORT void xed_strcat ( char *  dst,
const char *  src 
)

XED_DLL_EXPORT void xed_strcpy ( char *  dst,
const char *  src 
)

XED_DLL_EXPORT xed_uint_t xed_strlen ( const char *  s  ) 

XED_DLL_EXPORT int xed_strncat ( char *  dst,
const char *  src,
int  len 
)

returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .

XED_DLL_EXPORT int xed_strncpy ( char *  dst,
const char *  src,
int  len 
)

returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .


Generated on Wed Jan 21 02:17:00 2015 for XED by  doxygen 1.5.1-p1