aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_state.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-14 16:43:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-14 16:43:43 +0000
commit792b9c4c5a44280611945547a57ac9e48af5baf1 (patch)
tree015fb8a15f37966559de140db370509df4737a1a /mdoc_state.c
parent31a9a3fd6b1a2eec3fc1f35e538b7cc8726acfe4 (diff)
downloadmandoc-792b9c4c5a44280611945547a57ac9e48af5baf1.tar.gz
mandoc-792b9c4c5a44280611945547a57ac9e48af5baf1.tar.zst
mandoc-792b9c4c5a44280611945547a57ac9e48af5baf1.zip
support for hunting memory leaks;
designed and written last autumn, polished today
Diffstat (limited to 'mdoc_state.c')
-rw-r--r--mdoc_state.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_state.c b/mdoc_state.c
index d696ff27..9fa0f494 100644
--- a/mdoc_state.c
+++ b/mdoc_state.c
@@ -1,6 +1,6 @@
-/* $Id: mdoc_state.c,v 1.17 2020/06/22 19:20:40 schwarze Exp $ */
+/* $Id: mdoc_state.c,v 1.18 2022/04/14 16:43:44 schwarze Exp $ */
/*
- * Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2014, 2015, 2017, 2021 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -23,6 +23,9 @@
#include <stdlib.h>
#include <string.h>
+#if DEBUG_MEMORY
+#include "mandoc_dbg.h"
+#endif
#include "mandoc.h"
#include "roff.h"
#include "mdoc.h"