[BACK]Return to memcheck.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mit / expat / dist / tests

File: [cvs.NetBSD.org] / src / external / mit / expat / dist / tests / memcheck.h (download)

Revision 1.1.1.1.10.2, Wed Jun 21 17:15:28 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Changes since 1.1.1.1.10.1: +34 -0 lines

Pull up following revision(s) (requested by spz in ticket #1437):
	doc/3RDPARTY: 1.1454
	external/mit/expat/dist/AUTHORS: up to 1.1.1.1
	external/mit/expat/dist/CMake.README: up to 1.1.1.4
	external/mit/expat/dist/CMakeLists.txt: up to 1.1.1.4
	external/mit/expat/dist/COPYING: up to 1.1.1.3
	external/mit/expat/dist/Changes: up to 1.1.1.5
	external/mit/expat/dist/MANIFEST: up to 1.1.1.5
	external/mit/expat/dist/Makefile.in: up to 1.1.1.5
	external/mit/expat/dist/README: up to 1.1.1.5
	external/mit/expat/dist/amiga/Makefile: delete
	external/mit/expat/dist/amiga/README.txt: delete
	external/mit/expat/dist/amiga/expat.xml: delete
	external/mit/expat/dist/amiga/expat_68k.c: delete
	external/mit/expat/dist/amiga/expat_68k.h: delete
	external/mit/expat/dist/amiga/expat_68k_handler_stubs.c: delete
	external/mit/expat/dist/amiga/expat_base.h: delete
	external/mit/expat/dist/amiga/expat_lib.c: delete
	external/mit/expat/dist/amiga/expat_vectors.c: delete
	external/mit/expat/dist/amiga/include/inline4/expat.h: delete
	external/mit/expat/dist/amiga/include/interfaces/expat.h: delete
	external/mit/expat/dist/amiga/include/libraries/expat.h: delete
	external/mit/expat/dist/amiga/include/proto/expat.h: delete
	external/mit/expat/dist/amiga/launch.c: delete
	external/mit/expat/dist/bcb5/README.txt: delete
	external/mit/expat/dist/bcb5/all_projects.bpg: delete
	external/mit/expat/dist/bcb5/elements.bpf: delete
	external/mit/expat/dist/bcb5/elements.bpr: delete
	external/mit/expat/dist/bcb5/elements.mak: delete
	external/mit/expat/dist/bcb5/expat.bpf: delete
	external/mit/expat/dist/bcb5/expat.bpr: delete
	external/mit/expat/dist/bcb5/expat.mak: delete
	external/mit/expat/dist/bcb5/expat_static.bpf: delete
	external/mit/expat/dist/bcb5/expat_static.bpr: delete
	external/mit/expat/dist/bcb5/expat_static.mak: delete
	external/mit/expat/dist/bcb5/expatw.bpf: delete
	external/mit/expat/dist/bcb5/expatw.bpr: delete
	external/mit/expat/dist/bcb5/expatw.mak: delete
	external/mit/expat/dist/bcb5/expatw_static.bpf: delete
	external/mit/expat/dist/bcb5/expatw_static.bpr: delete
	external/mit/expat/dist/bcb5/expatw_static.mak: delete
	external/mit/expat/dist/bcb5/libexpat_mtd.def: delete
	external/mit/expat/dist/bcb5/libexpatw_mtd.def: delete
	external/mit/expat/dist/bcb5/makefile.mak: delete
	external/mit/expat/dist/bcb5/outline.bpf: delete
	external/mit/expat/dist/bcb5/outline.bpr: delete
	external/mit/expat/dist/bcb5/outline.mak: delete
	external/mit/expat/dist/bcb5/setup.bat: delete
	external/mit/expat/dist/bcb5/xmlwf.bpf: delete
	external/mit/expat/dist/bcb5/xmlwf.bpr: delete
	external/mit/expat/dist/bcb5/xmlwf.mak: delete
	external/mit/expat/dist/configure: up to 1.1.1.5
	external/mit/expat/dist/configure.ac: up to 1.1.1.3
	external/mit/expat/dist/configure.in: delete
	external/mit/expat/dist/doc/reference.html: up to 1.1.1.4
	external/mit/expat/dist/examples/elements.c: up to 1.1.1.4
	external/mit/expat/dist/examples/elements.dsp: delete
	external/mit/expat/dist/examples/outline.c: up to 1.1.1.3
	external/mit/expat/dist/examples/outline.dsp: delete
	external/mit/expat/dist/expat.dsw: delete
	external/mit/expat/dist/expat_config.h.in: up to 1.1.1.5
	external/mit/expat/dist/lib/Makefile.MPW: delete
	external/mit/expat/dist/lib/amigaconfig.h: delete
	external/mit/expat/dist/lib/expat.dsp: delete
	external/mit/expat/dist/lib/expat.h: up to 1.1.1.5
	external/mit/expat/dist/lib/expat_external.h: up to 1.1.1.3
	external/mit/expat/dist/lib/expat_static.dsp: delete
	external/mit/expat/dist/lib/expatw.dsp: delete
	external/mit/expat/dist/lib/expatw_static.dsp: delete
	external/mit/expat/dist/lib/macconfig.h: delete
	external/mit/expat/dist/lib/siphash.h: up to 1.1.1.1
	external/mit/expat/dist/lib/winconfig.h: up to 1.1.1.2
	external/mit/expat/dist/lib/xmlparse.c: up to 1.7
	external/mit/expat/dist/lib/xmlrole.c: up to 1.1.1.4
	external/mit/expat/dist/lib/xmltok.c: up to 1.4
	external/mit/expat/dist/m4/libtool.m4: up to 1.1.1.4
	external/mit/expat/dist/run.sh.in: up to 1.1.1.1
	external/mit/expat/dist/tests/benchmark/benchmark.c: up to 1.1.1.2
	external/mit/expat/dist/tests/benchmark/benchmark.dsp: delete
	external/mit/expat/dist/tests/benchmark/benchmark.dsw: delete
	external/mit/expat/dist/tests/memcheck.c: up to 1.1.1.1
	external/mit/expat/dist/tests/memcheck.h: up to 1.1.1.1
	external/mit/expat/dist/tests/minicheck.c: up to 1.1.1.3
	external/mit/expat/dist/tests/minicheck.h: up to 1.1.1.4
	external/mit/expat/dist/tests/runtests.c: up to 1.1.1.4
	external/mit/expat/dist/tests/xmltest.sh: up to 1.3
	external/mit/expat/dist/vms/README.vms: delete
	external/mit/expat/dist/vms/descrip.mms: delete
	external/mit/expat/dist/vms/expat_config.h: delete
	external/mit/expat/dist/win32/MANIFEST.txt: up to 1.1.1.2
	external/mit/expat/dist/win32/README.txt: up to 1.1.1.4
	external/mit/expat/dist/win32/expat.iss: up to 1.1.1.5
	external/mit/expat/dist/xmlwf/codepage.c: up to 1.1.1.3
	external/mit/expat/dist/xmlwf/filemap.h: up to 1.1.1.2
	external/mit/expat/dist/xmlwf/readfilemap.c: up to 1.1.1.4
	external/mit/expat/dist/xmlwf/unixfilemap.c: up to 1.1.1.3
	external/mit/expat/dist/xmlwf/win32filemap.c: up to 1.1.1.2
	external/mit/expat/dist/xmlwf/xmlfile.c: up to 1.1.1.3
	external/mit/expat/dist/xmlwf/xmlwf.c: up to 1.1.1.5
	external/mit/expat/dist/xmlwf/xmlwf.dsp: delete
Update expat to 2.2.1.

/* Copyright (c) 2017 The Expat Maintainers
 * Copying is permitted under the MIT license.  See the file COPYING
 * for details.
 *
 * memcheck.h
 *
 * Interface to allocation functions that will track what has or has
 * not been freed.
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef XML_MEMCHECK_H
#define XML_MEMCHECK_H 1

/* Allocation declarations */

void *tracking_malloc(size_t size);
void tracking_free(void *ptr);
void *tracking_realloc(void *ptr, size_t size);

/* End-of-test check to see if unfreed allocations remain. Returns
 * TRUE (1) if there is nothing, otherwise prints a report of the
 * remaining allocations and returns FALSE (0).
 */
int tracking_report(void);

#endif /* XML_MEMCHECK_H */

#ifdef __cplusplus
}
#endif