summaryrefslogtreecommitdiffstats
path: root/xstd.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 14:22:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 14:22:11 +0000
commitdc4e5ca1c9fd9bd34e243dcdb884af02102c9389 (patch)
tree78f2d3ac00100e778e6832933da1ace2dab9e080 /xstd.c
parentd4dba4479e3ed55fdc52b75eab00afe7ad78d5f0 (diff)
downloadmandoc-dc4e5ca1c9fd9bd34e243dcdb884af02102c9389.tar.gz
First addition of -man macro support.
Abstraction of mdoc.
Diffstat (limited to 'xstd.c')
-rw-r--r--xstd.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/xstd.c b/xstd.c
index 7073dc50..dc9b0b10 100644
--- a/xstd.c
+++ b/xstd.c
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <string.h>
-#include "private.h"
+#include "libmdoc.h"
#ifdef __linux__
extern size_t strlcpy(char *, const char *, size_t);
@@ -64,15 +64,6 @@ xrealloc(void *ptr, size_t sz)
return(p);
}
-void *
-xcalloc(size_t num, size_t sz)
-{
- void *p;
-
- if (NULL == (p = calloc(num, sz)))
- err(EXIT_FAILURE, "calloc");
- return(p);
-}
char *
xstrdup(const char *p)