ReactOS 0.4.17-dev-966-gf06eace
heap.h File Reference
#include <winbase.h>
Include dependency graph for heap.h:

Go to the source code of this file.

Functions

static void * __WINE_ALLOC_SIZE (1) heap_alloc(SIZE_T len)
 
static void * __WINE_ALLOC_SIZE (2) heap_realloc(void *mem
 
return HeapReAlloc (GetProcessHeap(), 0, mem, len)
 
static void heap_free (void *mem)
 
static void * heap_calloc (SIZE_T count, SIZE_T size)
 

Variables

static void SIZE_T len
 

Function Documentation

◆ __WINE_ALLOC_SIZE() [1/2]

static void * __WINE_ALLOC_SIZE ( 1  )
inlinestatic

Definition at line 27 of file heap.h.

28{
29 return HeapAlloc(GetProcessHeap(), 0, len);
30}
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
GLenum GLsizei len
Definition: glext.h:6722

◆ __WINE_ALLOC_SIZE() [2/2]

static void * __WINE_ALLOC_SIZE ( 2  )
inlinestatic

◆ heap_calloc()

static void * heap_calloc ( SIZE_T  count,
SIZE_T  size 
)
inlinestatic

Definition at line 49 of file heap.h.

50{
51 SIZE_T len = count * size;
52
53 if (size && len / size != count)
54 return NULL;
56}
#define NULL
Definition: types.h:112
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizeiptr size
Definition: glext.h:5919
ULONG_PTR SIZE_T
Definition: typedefs.h:80

Referenced by reg_mui_cache_put().

◆ heap_free()

static void heap_free ( void *  mem)
inlinestatic

Definition at line 44 of file heap.h.

45{
47}
#define HeapFree(x, y, z)
Definition: compat.h:735
Definition: mem.c:349

◆ HeapReAlloc()

return HeapReAlloc ( GetProcessHeap()  ,
0  ,
mem  ,
len   
)

Variable Documentation

◆ len

Initial value:
{
if (!mem)

Definition at line 37 of file heap.h.