ReactOS 0.4.16-dev-91-g764881a
debug_ros.c File Reference
#include "debug.c"
Include dependency graph for debug_ros.c:

Go to the source code of this file.

Macros

#define malloc   libwine_malloc
 
#define free   libwine_free
 
#define realloc   libwine_realloc
 
#define _strdup   libwine__strdup
 

Functions

__MINGW_ATTRIB_MALLOC void *__cdecl malloc (size_t size)
 
void __cdecl free (void *ptr)
 
void *__cdecl realloc (void *ptr, size_t size)
 
__MINGW_ATTRIB_MALLOC char *__cdecl _strdup (const char *str)
 

Macro Definition Documentation

◆ _strdup

#define _strdup   libwine__strdup

Definition at line 7 of file debug_ros.c.

◆ free

#define free   libwine_free

Definition at line 5 of file debug_ros.c.

◆ malloc

#define malloc   libwine_malloc

Definition at line 4 of file debug_ros.c.

◆ realloc

#define realloc   libwine_realloc

Definition at line 6 of file debug_ros.c.

Function Documentation

◆ _strdup()

Definition at line 29 of file debug_ros.c.

30{
31 char *newstr = malloc(strlen(str) + 1);
32 if (newstr) strcpy(newstr, str);
33 return newstr;
34}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
#define malloc
Definition: debug_ros.c:4
const WCHAR * str

◆ free()

void __cdecl free ( void ptr)

Definition at line 17 of file debug_ros.c.

18{
20}
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1594
static PVOID ptr
Definition: dispmode.c:27

◆ malloc()

Definition at line 12 of file debug_ros.c.

13{
14 return LocalAlloc(0, size);
15}
GLsizeiptr size
Definition: glext.h:5919
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1390

◆ realloc()

void *__cdecl realloc ( void ptr,
size_t  size 
)

Definition at line 22 of file debug_ros.c.

23{
24 if (ptr == NULL) return malloc(size);
26}
#define NULL
Definition: types.h:112
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:1625
#define LMEM_MOVEABLE
Definition: winbase.h:369