ReactOS
0.4.16-dev-13-ge2fc578
cc.h
Go to the documentation of this file.
1
/* ReactOS-Specific lwIP binding header - by Cameron Gutman */
2
3
#include <wdm.h>
4
5
/* ROS-specific mem defs */
6
void
*
7
malloc
(
size_t
size
);
8
9
void
*
10
calloc
(
size_t
count
,
size_t
size
);
11
12
void
13
free
(
void
*
mem
);
14
15
void
*
16
realloc
(
void
*
mem
,
size_t
size
);
17
18
/* mem_trim() must trim the buffer without relocating it.
19
* Since we can't do that, we just return the buffer passed in unchanged */
20
#define mem_trim(_m_, _s_) (_m_)
21
22
/* Unsigned int types */
23
typedef
unsigned
char
u8_t
;
24
typedef
unsigned
short
u16_t
;
25
typedef
unsigned
long
u32_t
;
26
27
/* Signed int types */
28
typedef
signed
char
s8_t
;
29
typedef
signed
short
s16_t
;
30
typedef
signed
long
s32_t
;
31
32
/* Memory pointer */
33
typedef
ULONG_PTR
mem_ptr_t
;
34
35
/* Printf/DPRINT formatters */
36
#define U16_F "hu"
37
#define S16_F "hd"
38
#define X16_F "hx"
39
#define U32_F "lu"
40
#define S32_F "ld"
41
#define X32_F "lx"
42
43
/* Endianness */
44
#define BYTE_ORDER LITTLE_ENDIAN
45
46
/* Checksum calculation algorithm choice */
47
#define LWIP_CHKSUM_ALGORITHM 3
48
49
/* Diagnostics */
50
#define LWIP_PLATFORM_DIAG(x) (DbgPrint x)
51
#define LWIP_PLATFORM_ASSERT(x) ASSERTMSG(x, FALSE)
52
53
/* Synchronization */
54
#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t (lev)
55
#define SYS_ARCH_PROTECT(lev) sys_arch_protect(&(lev))
56
#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
57
58
/* Compiler hints for packing structures */
59
#define PACK_STRUCT_STRUCT
60
#define PACK_STRUCT_USE_INCLUDES
61
realloc
#define realloc
Definition:
debug_ros.c:6
free
#define free
Definition:
debug_ros.c:5
malloc
#define malloc
Definition:
debug_ros.c:4
s16_t
signed short s16_t
Definition:
cc.h:29
mem_ptr_t
ULONG_PTR mem_ptr_t
Definition:
cc.h:33
s32_t
signed long s32_t
Definition:
cc.h:30
s8_t
signed char s8_t
Definition:
cc.h:28
u32_t
unsigned long u32_t
Definition:
cc.h:25
u8_t
unsigned char u8_t
Definition:
cc.h:23
u16_t
unsigned short u16_t
Definition:
cc.h:24
count
GLuint GLuint GLsizei count
Definition:
gl.h:1545
size
GLsizeiptr size
Definition:
glext.h:5919
calloc
#define calloc
Definition:
rosglue.h:14
mem
Definition:
mem.c:156
ULONG_PTR
uint32_t ULONG_PTR
Definition:
typedefs.h:65
drivers
network
tcpip
include
lwip
arch
cc.h
Generated on Sat Sep 14 2024 06:06:15 for ReactOS by
1.9.6