summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 08:49:34 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 08:49:34 +0000
commitb115f948b8e55e6c3cef4bfa81f62c190af37a59 (patch)
tree36b8ace377de1911ede7b7fca7e4ce75035928c9 /term_ps.c
parent684938dc1d7c8591d0b63657a1d36b25b24eaea8 (diff)
downloadmandoc-b115f948b8e55e6c3cef4bfa81f62c190af37a59.tar.gz
Move mandoc_{realloc,malloc,calloc} out of libmandoc.h and into mandoc.h
so that everybody can use them. This follows the convention of libXXXX.h being internal to a library and XXXX.h being the external interface. Not only does this allow the removal of lots of redundant NULL-checking code, it also sets the tone for adding new mandoc-global routines.
Diffstat (limited to 'term_ps.c')
-rw-r--r--term_ps.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/term_ps.c b/term_ps.c
index 78d4197b..f58db20f 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -366,14 +366,9 @@ ps_growbuf(struct termp *p, size_t sz)
p->engine.ps.psmargsz += sz;
- p->engine.ps.psmarg = realloc
+ p->engine.ps.psmarg = mandoc_realloc
(p->engine.ps.psmarg,
p->engine.ps.psmargsz);
-
- if (NULL == p->engine.ps.psmarg) {
- perror(NULL);
- exit((int)MANDOCLEVEL_SYSERR);
- }
}
static double ps_hspan(const struct termp *,