代码拉取完成,页面将自动刷新
/* used by md.c (the malloc debug module) */
#if defined(CHECK_MEMORY) && !defined(DEBUGMALLOC_EXTENSIONS)
#undef CHECK_MEMORY
#endif
typedef struct md_node_s {
int size;
struct md_node_s *next;
#ifdef DEBUGMALLOC_EXTENSIONS
int id;
int tag;
char *desc;
#endif
#ifdef CHECK_MEMORY
int magic;
#endif
} md_node_t;
#ifdef CHECK_MEMORY
#define MD_OVERHEAD (sizeof(md_node_t) + sizeof(int))
#define MD_MAGIC 0x4bee4bee
void check_all_blocks PROT((int));
#else
#define MD_OVERHEAD (sizeof(md_node_t))
#endif
#define MD_TABLE_BITS 14
#define MD_TABLE_SIZE (1 << MD_TABLE_BITS)
#define MD_HASH(x) (((unsigned int)x >> 3) & (MD_TABLE_SIZE - 1))
#define PTR(x) ((void *)(x + 1))
#define NODET_TO_PTR(x, y) ((y)(x + 1))
#define PTR_TO_NODET(x) ((md_node_t *)(x) - 1)
#define DO_MARK(ptr, kind) if (PTR_TO_NODET(ptr)->tag != kind) \
fprintf(stderr, "Expected node of type %04x: got %s %04x\n", \
kind, PTR_TO_NODET(ptr)->desc, PTR_TO_NODET(ptr)->tag); \
else PTR_TO_NODET(ptr)->tag |= TAG_MARKED
#ifdef DEBUGMALLOC_EXTENSIONS
#define SET_TAG(x, y) set_tag(x, y)
#else
#define SET_TAG(x, y)
#endif
extern int malloc_mask;
extern unsigned int total_malloced;
extern unsigned int hiwater;
void MDinit PROT((void));
void MDmalloc PROT((md_node_t *, int, int, char *));
int MDfree PROT((void *));
#ifdef DEBUGMALLOC_EXTENSIONS
struct svalue_s;
void mark_svalue PROT((struct svalue_s *));
void set_tag PROT((void *, int));
void check_string_stats PROT((outbuffer_t *));
#endif
#define MAX_CATEGORY 130
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。