source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Remove enum mcharst, which hasn't been used in quite some time.
@ 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:
-----------
Remove enum mcharst, which hasn't been used in quite some time.

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.36
retrieving revision 1.37
diff -Lchars.c -Lchars.c -u -p -r1.36 -r1.37
--- chars.c
+++ chars.c
@@ -55,7 +55,6 @@ struct	ln {
 #include "chars.in"
 
 struct	mchars {
-	enum mcharst	  type;
 	struct ln	**htab;
 };
 
@@ -72,7 +71,7 @@ mchars_free(struct mchars *arg)
 }
 
 struct mchars *
-mchars_init(enum mcharst type)
+mchars_init(void)
 {
 	struct mchars	 *tab;
 	struct ln	**htab;
@@ -103,7 +102,6 @@ mchars_init(enum mcharst type)
 	}
 
 	tab->htab = htab;
-	tab->type = type;
 	return(tab);
 }
 
Index: man_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_term.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -Lman_term.c -Lman_term.c -u -p -r1.106 -r1.107
--- 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(MCHARS_ASCII);
+			p->symtab = mchars_init();
 			break;
 		default:
 			abort();
Index: html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -Lhtml.c -Lhtml.c -u -p -r1.134 -r1.135
--- 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(MCHARS_HTML);
+	h->symtab = mchars_init();
 
 	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.227
retrieving revision 1.228
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.227 -r1.228
--- 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(MCHARS_ASCII);
+			p->symtab = mchars_init();
 			break;
 		default:
 			abort();
Index: mandoc.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -Lmandoc.h -Lmandoc.h -u -p -r1.71 -r1.72
--- mandoc.h
+++ mandoc.h
@@ -302,11 +302,6 @@ enum	mandoc_esc {
 	ESCAPE_NOSPACE /* suppress space if the last on a line */
 };
 
-enum	mcharst {
-	MCHARS_ASCII, /* 7-bit ascii representation */
-	MCHARS_HTML /* unicode values */
-};
-
 typedef	void	(*mandocmsg)(enum mandocerr, enum mandoclevel,
 			const char *, int, int, const char *);
 
@@ -332,7 +327,7 @@ void		 *mandoc_realloc(void *, size_t);
 
 enum mandoc_esc	  mandoc_escape(const char **, const char **, int *);
 
-struct mchars	 *mchars_init(enum mcharst);
+struct mchars	 *mchars_init(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: Remove enum mcharst, which hasn't been used in quite some time 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).