diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-23 11:25:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-23 11:25:25 +0000 |
commit | f40dcc7e2054a99977d444c5fa36868fba2c3f36 (patch) | |
tree | c8afef4d61b8627cc3dd4afa60978cec91753911 /mandoc.h | |
parent | 119d1dcb94c6593777a29408f57b0568ec13482b (diff) | |
download | mandoc-f40dcc7e2054a99977d444c5fa36868fba2c3f36.tar.gz |
The files mandoc.c and mandoc.h contained both specialised low-level
functions used for multiple languages (mdoc, man, roff), for example
mandoc_escape(), mandoc_getarg(), mandoc_eos(), and generic auxiliary
functions. Split the auxiliaries out into their own file and header.
While here, do some #include cleanup.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* $Id$ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -405,12 +405,7 @@ struct man; __BEGIN_DECLS -void *mandoc_calloc(size_t, size_t); enum mandoc_esc mandoc_escape(const char **, const char **, int *); -void *mandoc_malloc(size_t); -void *mandoc_realloc(void *, size_t); -char *mandoc_strdup(const char *); -char *mandoc_strndup(const char *, size_t); struct mchars *mchars_alloc(void); void mchars_free(struct mchars *); char mchars_num2char(const char *, size_t); |