diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-30 22:14:42 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-30 22:14:42 +0000 |
commit | 8978dc20be98c1d06b71ccbb2bb988879f8a2d1c (patch) | |
tree | dd0791ef4fe7c16a4091258237bfa1a19e0b1d25 | |
parent | 81b57ab7ff9feb505ae3ae1ed097ad8b36b24fe7 (diff) | |
download | mandoc-8978dc20be98c1d06b71ccbb2bb988879f8a2d1c.tar.gz |
Rename mchars_init() -> mchars_alloc() for consistency.
-rw-r--r-- | chars.c | 2 | ||||
-rw-r--r-- | html.c | 2 | ||||
-rw-r--r-- | man_term.c | 2 | ||||
-rw-r--r-- | mandoc.h | 2 | ||||
-rw-r--r-- | mdoc_term.c | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -71,7 +71,7 @@ mchars_free(struct mchars *arg) } struct mchars * -mchars_init(void) +mchars_alloc(void) { struct mchars *tab; struct ln **htab; @@ -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)) { @@ -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(); @@ -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(); |