From 92c367a844f2f26d325d4ee6ca032894e94f7a06 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 17 Mar 2011 08:49:34 +0000 Subject: 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. --- libmandoc.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index 3a8559b9..eadaf257 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.11 2011/03/07 01:35:51 schwarze Exp $ */ +/* $Id: libmandoc.h,v 1.12 2011/03/17 08:49:34 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -20,10 +20,7 @@ __BEGIN_DECLS int mandoc_special(char *); -void *mandoc_calloc(size_t, size_t); char *mandoc_strdup(const char *); -void *mandoc_malloc(size_t); -void *mandoc_realloc(void *, size_t); char *mandoc_getarg(char **, mandocmsg, void *, int, int *); char *mandoc_normdate(char *, mandocmsg, void *, int, int); int mandoc_eos(const char *, size_t, int); -- cgit v1.2.3-56-ge451