aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-03-02 16:48:00 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-03-02 16:48:00 +0000
commit7d5354266f59d5acd666d59a0791abdc8dced520 (patch)
treeb615c543bc462c51018f9d5772b8175eef259ffd
parentd3c5aaa494431ae3a2463cc5ca6c9b8f3bf733c0 (diff)
downloadsrc-7d5354266f59d5acd666d59a0791abdc8dced520.tar.gz
src-7d5354266f59d5acd666d59a0791abdc8dced520.zip
Remove WIP codevendor/mandoc/20150302
Notes
Notes: svn path=/vendor/mdocml/dist/; revision=279525 svn path=/vendor/mdocml/20150302/; revision=279526; tag=vendor/mandoc/20150302
-rw-r--r--roff.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/roff.c b/roff.c
index 5f894e89e251..3c920137ea70 100644
--- a/roff.c
+++ b/roff.c
@@ -418,7 +418,6 @@ static enum rofft roff_parse(struct roff *, char *, int *,
static enum rofferr roff_parsetext(struct buf *, int, int *);
static enum rofferr roff_res(struct roff *, struct buf *, int, int);
static enum rofferr roff_rm(ROFF_ARGS);
-static enum rofferr roff_rn(ROFF_ARGS);
static enum rofferr roff_rr(ROFF_ARGS);
static void roff_setstr(struct roff *,
const char *, const char *, int);
@@ -625,7 +624,7 @@ static struct roffmac roffs[ROFF_MAX] = {
{ "rhang", roff_line_ignore, NULL, NULL, 0, NULL },
{ "rj", roff_line_ignore, NULL, NULL, 0, NULL },
{ "rm", roff_rm, NULL, NULL, 0, NULL },
- { "rn", roff_rn, NULL, NULL, 0, NULL },
+ { "rn", roff_unsupp, NULL, NULL, 0, NULL },
{ "rnn", roff_unsupp, NULL, NULL, 0, NULL },
{ "rr", roff_rr, NULL, NULL, 0, NULL },
{ "rs", roff_line_ignore, NULL, NULL, 0, NULL },
@@ -2326,35 +2325,6 @@ roff_rm(ROFF_ARGS)
}
static enum rofferr
-roff_rn(ROFF_ARGS)
-{
- struct roffkv *n;
- char *newname;
- const char *name;
- size_t namesz;
-
- name = newname = buf->buf + pos;
- if (*name == '\0')
- return(ROFF_IGN);
-
- namesz = roff_getname(r, &newname, ln, pos);
- if (name[namesz] == '\\')
- return(ROFF_IGN);
-
-
- for (n = r->strtab; n; n = n->next)
- if (0 == strncmp(name, n->key.p, namesz) &&
- '\0' == n->key.p[(int)namesz]) {
- free(n->key.p);
- fprintf(stderr, "From %s to %s\n", n->key.p, newname);
- n->key.p = mandoc_strdup(newname);
- n->key.sz = strlen(n->key.p);
- }
-
- return(ROFF_IGN);
-}
-
-static enum rofferr
roff_it(ROFF_ARGS)
{
int iv;