summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chars.c2
-rw-r--r--html.c2
-rw-r--r--man_term.c2
-rw-r--r--mandoc.h2
-rw-r--r--mdoc_term.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/chars.c b/chars.c
index e14e461b..c11c684e 100644
--- a/chars.c
+++ b/chars.c
@@ -71,7 +71,7 @@ mchars_free(struct mchars *arg)
}
struct mchars *
-mchars_init(void)
+mchars_alloc(void)
{
struct mchars *tab;
struct ln **htab;
diff --git a/html.c b/html.c
index 9c39f9cc..856835e1 100644
--- a/html.c
+++ b/html.c
@@ -122,7 +122,7 @@ ml_alloc(char *outopts, enum htmltype type)
h->type = type;
h->tags.head = NULL;
- h->symtab = mchars_init();
+ h->symtab = mchars_alloc();
while (outopts && *outopts)
switch (getsubopt(&outopts, UNCONST(toks), &v)) {
diff --git a/man_term.c b/man_term.c
index 3f317be7..af8e45c6 100644
--- a/man_term.c
+++ b/man_term.c
@@ -158,7 +158,7 @@ terminal_man(void *arg, const struct man *man)
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
- p->symtab = mchars_init();
+ p->symtab = mchars_alloc();
break;
default:
abort();
diff --git a/mandoc.h b/mandoc.h
index 481f4393..c13edfd7 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -327,7 +327,7 @@ void *mandoc_realloc(void *, size_t);
enum mandoc_esc mandoc_escape(const char **, const char **, int *);
-struct mchars *mchars_init(void);
+struct mchars *mchars_alloc(void);
const char *mchars_num2char(const char *, size_t);
const char *mchars_spec2str(struct mchars *, const char *, size_t, size_t *);
int mchars_spec2cp(struct mchars *, const char *, size_t);
diff --git a/mdoc_term.c b/mdoc_term.c
index 6cdfa344..0ccacd66 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -266,7 +266,7 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc)
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
- p->symtab = mchars_init();
+ p->symtab = mchars_alloc();
break;
default:
abort();