malloc_hook.h

来自「symbina上可以使用一个xml解析器,对开发网络应用很有好处」· C头文件 代码 · 共 28 行

H
28
字号
/* Thread Local Storage based malloc hooks for Symbian.
** Copyright (C) 2005 Darrell Karbott (djk2005@users.sf.net)
** This code is free software; you can redistribute it and/or
** modify it under the terms of GNU Lesser General Public License.
*/
#ifndef __MALLOC_HOOK_H__
#define __MALLOC_HOOK_H__ 1
#ifndef __SYMBIAN32__ 
#error "This file contains Symbian specific code. You shouldn't be building it for other targets."
#endif

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif
typedef void *(*TMallocFunc)(size_t size);
typedef void (*TFreeFunc)(void *ptr);

int set_mem_funcs_using_tls(TMallocFunc pMalloc, TFreeFunc pFree);
TMallocFunc get_malloc_func_using_tls();
TFreeFunc get_free_func_using_tls();
#ifdef __cplusplus
}
#endif
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?