source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Rename mchars_init() -> mchars_alloc() for consistency.
@ 2011-04-30 22:14 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-30 22:14 UTC (permalink / raw)
  To: source

Log Message:
-----------
Rename mchars_init() -> mchars_alloc() for consistency.

Modified Files:
--------------
    mdocml:
        chars.c
        html.c
        man_term.c
        mandoc.h
        mdoc_term.c

Revision Data
-------------
Index: chars.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/chars.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -Lchars.c -Lchars.c -u -p -r1.37 -r1.38
--- chars.c
+++ 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;
Index: man_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_term.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -Lman_term.c -Lman_term.c -u -p -r1.107 -r1.108
--- man_term.c
+++ man_term.c
@@ -158,7 +158,7 @@ terminal_man(void *arg, const struct man
 	if (NULL == p->symtab)
 		switch (p->enc) {
 		case (TERMENC_ASCII):
-			p->symtab = mchars_init();
+			p->symtab = mchars_alloc();
 			break;
 		default:
 			abort();
Index: html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -Lhtml.c -Lhtml.c -u -p -r1.135 -r1.136
--- html.c
+++ html.c
@@ -122,7 +122,7 @@ ml_alloc(char *outopts, enum htmltype ty
 
 	h->type = type;
 	h->tags.head = NULL;
-	h->symtab = mchars_init();
+	h->symtab = mchars_alloc();
 
 	while (outopts && *outopts)
 		switch (getsubopt(&outopts, UNCONST(toks), &v)) {
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.228
retrieving revision 1.229
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.228 -r1.229
--- mdoc_term.c
+++ mdoc_term.c
@@ -266,7 +266,7 @@ terminal_mdoc(void *arg, const struct md
 	if (NULL == p->symtab)
 		switch (p->enc) {
 		case (TERMENC_ASCII):
-			p->symtab = mchars_init();
+			p->symtab = mchars_alloc();
 			break;
 		default:
 			abort();
Index: mandoc.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -Lmandoc.h -Lmandoc.h -u -p -r1.72 -r1.73
--- mandoc.h
+++ 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);
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-30 22:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-30 22:14 mdocml: Rename mchars_init() -> mchars_alloc() for consistency kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).