ReactOS 0.4.16-dev-306-g647d351
def.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"
Include dependency graph for def.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PERF_START   /* null definition */
 
#define PERF_STOP(x)   /* null definition */
 
#define LWIP_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define LWIP_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define LWIP_ARRAYSIZE(x)   (sizeof(x)/sizeof((x)[0]))
 
#define LWIP_MAKEU32(a, b, c, d)
 
#define NULL   ((void *)0)
 
#define lwip_htons(x)   ((u16_t)(x))
 
#define lwip_ntohs(x)   ((u16_t)(x))
 
#define lwip_htonl(x)   ((u32_t)(x))
 
#define lwip_ntohl(x)   ((u32_t)(x))
 
#define PP_HTONS(x)   ((u16_t)(x))
 
#define PP_NTOHS(x)   ((u16_t)(x))
 
#define PP_HTONL(x)   ((u32_t)(x))
 
#define PP_NTOHL(x)   ((u32_t)(x))
 
#define htons(x)   lwip_htons(x)
 
#define ntohs(x)   lwip_ntohs(x)
 
#define htonl(x)   lwip_htonl(x)
 
#define ntohl(x)   lwip_ntohl(x)
 

Functions

void lwip_itoa (char *result, size_t bufsize, int number)
 
int lwip_strnicmp (const char *str1, const char *str2, size_t len)
 
int lwip_stricmp (const char *str1, const char *str2)
 
charlwip_strnstr (const char *buffer, const char *token, size_t n)
 
charlwip_strnistr (const char *buffer, const char *token, size_t n)
 

Detailed Description

various utility macros

Definition in file def.h.

Macro Definition Documentation

◆ htonl

#define htonl (   x)    lwip_htonl(x)

Definition at line 121 of file def.h.

◆ htons

#define htons (   x)    lwip_htons(x)

Definition at line 119 of file def.h.

◆ LWIP_ARRAYSIZE

#define LWIP_ARRAYSIZE (   x)    (sizeof(x)/sizeof((x)[0]))

Definition at line 69 of file def.h.

◆ lwip_htonl

#define lwip_htonl (   x)    ((u32_t)(x))

Definition at line 88 of file def.h.

◆ lwip_htons

#define lwip_htons (   x)    ((u16_t)(x))

Definition at line 86 of file def.h.

◆ LWIP_MAKEU32

#define LWIP_MAKEU32 (   a,
  b,
  c,
  d 
)
Value:
(((u32_t)((a) & 0xff) << 24) | \
((u32_t)((b) & 0xff) << 16) | \
((u32_t)((c) & 0xff) << 8) | \
(u32_t)((d) & 0xff))
const GLubyte * c
Definition: glext.h:8905
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
uint32_t u32_t
Definition: arch.h:129
#define d
Definition: ke_i.h:81

Create u32_t value from bytes

Definition at line 72 of file def.h.

◆ LWIP_MAX

#define LWIP_MAX (   x,
  y 
)    (((x) > (y)) ? (x) : (y))

Definition at line 65 of file def.h.

◆ LWIP_MIN

#define LWIP_MIN (   x,
  y 
)    (((x) < (y)) ? (x) : (y))

Definition at line 66 of file def.h.

◆ lwip_ntohl

#define lwip_ntohl (   x)    ((u32_t)(x))

Definition at line 89 of file def.h.

◆ lwip_ntohs

#define lwip_ntohs (   x)    ((u16_t)(x))

Definition at line 87 of file def.h.

◆ ntohl

#define ntohl (   x)    lwip_ntohl(x)

Definition at line 122 of file def.h.

◆ ntohs

#define ntohs (   x)    lwip_ntohs(x)

Definition at line 120 of file def.h.

◆ NULL

#define NULL   ((void *)0)

Definition at line 81 of file def.h.

◆ PERF_START

#define PERF_START   /* null definition */

Definition at line 57 of file def.h.

◆ PERF_STOP

#define PERF_STOP (   x)    /* null definition */

Definition at line 58 of file def.h.

◆ PP_HTONL

#define PP_HTONL (   x)    ((u32_t)(x))

Definition at line 92 of file def.h.

◆ PP_HTONS

#define PP_HTONS (   x)    ((u16_t)(x))

Definition at line 90 of file def.h.

◆ PP_NTOHL

#define PP_NTOHL (   x)    ((u32_t)(x))

Definition at line 93 of file def.h.

◆ PP_NTOHS

#define PP_NTOHS (   x)    ((u16_t)(x))

Definition at line 91 of file def.h.