static void debugmem_tag_error(void *p) { xmlGenericError(xmlGenericErrorContext, "Memory tag error occurs :%p \n\t bye\n", p); #ifdef MEM_LIST if (stderr) xmlMemDisplay(stderr); #endif }
static void debugmem_tag_error(void *p) { xmlGenericError(xmlGenericErrorContext, "Memory tag error occurs :%p \n\t bye\n", p); #if (defined(MEM_LIST)&&defined(FILE_SUPPORT)) if (stderr) xmlMemDisplay(stderr); #endif }
void xmlMemoryDump(void) { FILE *dump; if (debugMaxMemSize == 0) return; dump = fopen(".memdump", "w"); if (dump == NULL) xmlMemoryDumpFile = stderr; else xmlMemoryDumpFile = dump; xmlMemDisplay(xmlMemoryDumpFile); if (dump != NULL) fclose(dump); }
void xmlMemoryDump(void) { #ifdef MEM_LIST KDFile *dump; if (debugMaxMemSize == 0) return; dump = fopen(".memdump", "w"); if (dump == KD_NULL) xmlMemoryDumpFile = stderr; else xmlMemoryDumpFile = dump; xmlMemDisplay(xmlMemoryDumpFile); if (dump != KD_NULL) fclose(dump); #endif /* MEM_LIST */ }
void xmlMemoryDump(void) { #if (defined(MEM_LIST)&&defined(FILE_SUPPORT)) FILE *dump; if (debugMaxMemSize == 0) return; dump = fopen(".memdump", "w"); if (dump == NULL) xmlMemoryDumpFile = stderr; else xmlMemoryDumpFile = dump; xmlMemDisplay(xmlMemoryDumpFile); if (dump != NULL) fclose(dump); #endif /* MEM_LIST */ }