diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 08:49:34 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 08:49:34 +0000 |
commit | b115f948b8e55e6c3cef4bfa81f62c190af37a59 (patch) | |
tree | 36b8ace377de1911ede7b7fca7e4ce75035928c9 /libmandoc.h | |
parent | 684938dc1d7c8591d0b63657a1d36b25b24eaea8 (diff) | |
download | mandoc-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 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libmandoc.h b/libmandoc.h index 83409a82..f7a54f2b 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -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); |