From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Remove enum mcharst, which hasn't been used in quite some time.
Date: Sat, 30 Apr 2011 18:14:02 -0400 (EDT) [thread overview]
Message-ID: <201104302214.p3UME2Jc019360@krisdoz.my.domain> (raw)
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
reply other threads:[~2011-04-30 22:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201104302214.p3UME2Jc019360@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).