ReactOS  0.4.12-dev-712-ge6be187
debug_ros.c File Reference
#include "debug.c"
Include dependency graph for debug_ros.c:

Go to the source code of this file.


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


__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
const WCHAR * str
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
#define malloc
Definition: debug_ros.c:4

◆ free()

void __cdecl free ( void ptr)

Definition at line 17 of file debug_ros.c.

18 {
19  LocalFree(ptr);
20 }
static PVOID ptr
Definition: dispmode.c:27
Definition: heapmem.c:1577

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

◆ 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 }
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
GLsizeiptr size
Definition: glext.h:5919
Definition: winbase.h:350
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:1608
#define malloc
Definition: debug_ros.c:4