From 8978dc20be98c1d06b71ccbb2bb988879f8a2d1c Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 30 Apr 2011 22:14:42 +0000 Subject: Rename mchars_init() -> mchars_alloc() for consistency. --- chars.c | 2 +- html.c | 2 +- man_term.c | 2 +- mandoc.h | 2 +- mdoc_term.c | 2 +- 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(); -- cgit