From 792b9c4c5a44280611945547a57ac9e48af5baf1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 14 Apr 2022 16:43:43 +0000 Subject: support for hunting memory leaks; designed and written last autumn, polished today --- mandoc_aux.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mandoc_aux.h') diff --git a/mandoc_aux.h b/mandoc_aux.h index 469e331e..342e3d72 100644 --- a/mandoc_aux.h +++ b/mandoc_aux.h @@ -1,7 +1,7 @@ -/* $Id: mandoc_aux.h,v 1.7 2017/06/12 19:05:47 schwarze Exp $ */ +/* $Id: mandoc_aux.h,v 1.8 2022/04/14 16:43:44 schwarze Exp $ */ /* + * Copyright (c) 2014, 2017, 2021 Ingo Schwarze * Copyright (c) 2009, 2011 Kristaps Dzonsons - * Copyright (c) 2014, 2017 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -25,3 +25,7 @@ void *mandoc_reallocarray(void *, size_t, size_t); void *mandoc_recallocarray(void *, size_t, size_t, size_t); char *mandoc_strdup(const char *); char *mandoc_strndup(const char *, size_t); + +#if DEBUG_MEMORY +#include "mandoc_dbg.h" +#endif -- cgit v1.2.3