aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-23 11:25:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-23 11:25:25 +0000
commit6a81c8460007e1d52bf6aab06460b9ce75c1ae4b (patch)
tree5a3bfa345c1f70d7d3c6ad760fe291cc75bd6730 /mandoc.h
parent4f632f9feb86ec93aaa9cd7d8ee145bf5788b13c (diff)
downloadmandoc-6a81c8460007e1d52bf6aab06460b9ce75c1ae4b.tar.gz
mandoc-6a81c8460007e1d52bf6aab06460b9ce75c1ae4b.tar.zst
mandoc-6a81c8460007e1d52bf6aab06460b9ce75c1ae4b.zip
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.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/mandoc.h b/mandoc.h
index 011f1b06..a6900ee6 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,7 +1,7 @@
-/* $Id: mandoc.h,v 1.117 2014/03/19 22:20:43 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.118 2014/03/23 11:25:26 schwarze Exp $ */
/*
* 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);