ReactOS 0.4.15-dev-7788-g1ad9096
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 voidheap_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 ( )
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 ( )
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 _ItemizeInternal(), buffer_process_converted_attribute(), clone_sig(), compile_state_table(), computeIsolatingRunsSet(), context_create(), convert_fvf_to_declaration(), d3drm_frame_array_create(), d3drm_light_array_create(), d3drm_mesh_AddGroup(), d3drm_mesh_builder3_CreateMesh(), d3drm_visual_array_create(), geometry_shader_init(), init_format_base_info(), load_mesh_data(), read_metadata_info(), record_instruction(), requires_fallback(), ScriptLayout(), ScriptPlace(), ScriptShape(), ScriptShapeOpenType(), ScriptStringAnalyse(), ScriptTextOut(), shader_get_registers_used(), shader_glsl_alloc(), shader_glsl_dump_program_source(), shader_glsl_init_transform_feedback(), shader_glsl_setup_vs3_output(), shader_record_sample(), shader_signature_copy(), SHAPE_does_GSUB_feature_apply_to_chars(), surface_download_data(), swapchain_create_context(), swapchain_init(), texture1d_download_data(), texture1d_init(), texture3d_upload_data(), texture_init(), usp10_language_add_feature_list(), vertexdeclaration_init(), wined3d_adapter_init_fb_cfgs(), wined3d_device_init_3d(), wined3d_device_init_gdi(), and wined3d_find_closest_matching_adapter_mode().

◆ 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:156

◆ HeapReAlloc()

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

Variable Documentation

◆ len

Initial value:
{
if (!mem)

Definition at line 37 of file heap.h.