diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 14:22:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 14:22:11 +0000 |
commit | eae8f4ff2cd357d92c5e6aa901cf82cc4d344470 (patch) | |
tree | 9643abd856c3d831edcab779e5dbf9e0ade9912f /xstd.c | |
parent | ca91d8f3ace59249bb9ba5e96567d230e6a0afde (diff) | |
download | mandoc-eae8f4ff2cd357d92c5e6aa901cf82cc4d344470.tar.gz mandoc-eae8f4ff2cd357d92c5e6aa901cf82cc4d344470.tar.zst mandoc-eae8f4ff2cd357d92c5e6aa901cf82cc4d344470.zip |
First addition of -man macro support.
Abstraction of mdoc.
Diffstat (limited to 'xstd.c')
-rw-r--r-- | xstd.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -1,4 +1,4 @@ -/* $Id: xstd.c,v 1.12 2009/03/19 16:40:49 kristaps Exp $ */ +/* $Id: xstd.c,v 1.13 2009/03/23 14:22:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org> * @@ -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) |