aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--libmandoc.h4
-rw-r--r--mdoc.c8
-rw-r--r--roff.c10
3 files changed, 16 insertions, 6 deletions
diff --git a/libmandoc.h b/libmandoc.h
index 61b3a57f..8ade3a15 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.26 2011/07/27 07:32:26 kristaps Exp $ */
+/* $Id: libmandoc.h,v 1.27 2011/07/27 12:41:02 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -75,10 +75,12 @@ void roff_endparse(struct roff *);
int roff_regisset(const struct roff *, enum regs);
unsigned int roff_regget(const struct roff *, enum regs);
void roff_regunset(struct roff *, enum regs);
+#if 0
char roff_eqndelim(const struct roff *);
void roff_openeqn(struct roff *, const char *,
int, int, const char *);
int roff_closeeqn(struct roff *);
+#endif
const struct tbl_span *roff_span(const struct roff *);
const struct eqn *roff_eqn(const struct roff *);
diff --git a/mdoc.c b/mdoc.c
index 4d3c5fb6..cdeb88bf 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.192 2011/07/27 07:09:41 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.193 2011/07/27 12:41:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -97,7 +97,9 @@ static struct mdoc_node *node_alloc(struct mdoc *, int, int,
enum mdoct, enum mdoc_type);
static int node_append(struct mdoc *,
struct mdoc_node *);
+#if 0
static int mdoc_preptext(struct mdoc *, int, char *, int);
+#endif
static int mdoc_ptext(struct mdoc *, int, char *, int);
static int mdoc_pmacro(struct mdoc *, int, char *, int);
@@ -300,7 +302,7 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf, int offs)
return(mandoc_getcontrol(buf, &offs) ?
mdoc_pmacro(m, ln, buf, offs) :
- mdoc_preptext(m, ln, buf, offs));
+ mdoc_ptext(m, ln, buf, offs));
}
int
@@ -651,6 +653,7 @@ mdoc_node_delete(struct mdoc *m, struct mdoc_node *p)
mdoc_node_free(p);
}
+#if 0
/*
* Pre-treat a text line.
* Text lines can consist of equations, which must be handled apart from
@@ -702,6 +705,7 @@ mdoc_preptext(struct mdoc *m, int line, char *buf, int offs)
return(1);
}
+#endif
/*
* Parse free-form text, that is, a line that does not begin with the
diff --git a/roff.c b/roff.c
index 607065fd..129a90ef 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.155 2011/07/27 07:32:26 kristaps Exp $ */
+/* $Id: roff.c,v 1.156 2011/07/27 12:41:02 kristaps Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -166,6 +166,8 @@ static const char *roff_getstrn(const struct roff *,
const char *, size_t);
static enum rofferr roff_line_ignore(ROFF_ARGS);
static enum rofferr roff_nr(ROFF_ARGS);
+static void roff_openeqn(struct roff *, const char *,
+ int, int, const char *);
static enum rofft roff_parse(struct roff *, const char *, int *);
static enum rofferr roff_parsetext(char *);
static void roff_res(struct roff *,
@@ -1258,14 +1260,16 @@ roff_T_(ROFF_ARGS)
return(ROFF_IGN);
}
-int
+#if 0
+static int
roff_closeeqn(struct roff *r)
{
return(r->eqn && ROFF_EQN == eqn_end(&r->eqn) ? 1 : 0);
}
+#endif
-void
+static void
roff_openeqn(struct roff *r, const char *name, int line,
int offs, const char *buf)
{