diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-27 12:41:02 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-27 12:41:02 +0000 |
commit | 96482854006a9cdd85cb178e59313f4d7edfe4ec (patch) | |
tree | eec8748897d6708025c7de6ac0e464cba8c0136d | |
parent | 65468ee42d485b8372e1b89f1ce668498f00a1cb (diff) | |
download | mandoc-96482854006a9cdd85cb178e59313f4d7edfe4ec.tar.gz |
Disable in-line eqn processing for a bit.
-rw-r--r-- | libmandoc.h | 2 | ||||
-rw-r--r-- | mdoc.c | 6 | ||||
-rw-r--r-- | roff.c | 8 |
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 *); @@ -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 @@ -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) { |