summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-27 12:41:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-27 12:41:02 +0000
commit96482854006a9cdd85cb178e59313f4d7edfe4ec (patch)
treeeec8748897d6708025c7de6ac0e464cba8c0136d
parent65468ee42d485b8372e1b89f1ce668498f00a1cb (diff)
downloadmandoc-96482854006a9cdd85cb178e59313f4d7edfe4ec.tar.gz
Disable in-line eqn processing for a bit.
-rw-r--r--libmandoc.h2
-rw-r--r--mdoc.c6
-rw-r--r--roff.c8
3 files changed, 13 insertions, 3 deletions
diff --git a/libmandoc.h b/libmandoc.h
index ad657337..a3da4afb 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -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 c55d3a58..6436e36c 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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 4e24bcbc..0d8a1c5b 100644
--- a/roff.c
+++ b/roff.c
@@ -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)
{