VirtualBox

source: vbox/trunk/src/libs/libxml2-2.12.6/testOOMlib.h@ 104195

最後變更 在這個檔案從104195是 104106,由 vboxsync 提交於 11 月 前

libxml2-2.9.14: Applied and adjusted our libxml2 changes to 2.9.14. bugref:10640

  • 屬性 svn:eol-style 設為 native
檔案大小: 568 位元組
 
1#ifndef TEST_OOM_LIB_H
2#define TEST_OOM_LIB_H
3
4#include <stddef.h>
5
6void* test_malloc (size_t bytes);
7void* test_realloc (void *memory,
8 size_t bytes);
9void test_free (void *memory);
10char* test_strdup (const char *str);
11
12/* returns true on success */
13typedef int (* TestMemoryFunction) (void *data);
14
15/* returns true on success */
16int test_oom_handling (TestMemoryFunction func,
17 void *data);
18
19/* get number of blocks leaked */
20int test_get_malloc_blocks_outstanding (void);
21
22#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette