Files
core/DesktopEditor/xml/libxml2/testOOMlib.h
Oleg.Korshul a3a19a796b xmlutils crossplatform
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63499 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:14:17 +03:00

27 lines
649 B
C

#ifndef TEST_OOM_LIB_H
#define TEST_OOM_LIB_H
#include <config.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
void* test_malloc (size_t bytes);
void* test_realloc (void *memory,
size_t bytes);
void test_free (void *memory);
char* test_strdup (const char *str);
/* returns true on success */
typedef int (* TestMemoryFunction) (void *data);
/* returns true on success */
int test_oom_handling (TestMemoryFunction func,
void *data);
/* get number of blocks leaked */
int test_get_malloc_blocks_outstanding (void);
#endif