summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 10:24:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 10:24:35 +0000
commit49de222b7899f01575a6ac00a26bc345864dc826 (patch)
treee8b6249505f745bf14ced273989037807624f076 /mdoc.c
parentf1454c7cbdfb3ec91f3bcce1e004d4c81d3b08cf (diff)
downloadmandoc-49de222b7899f01575a6ac00a26bc345864dc826.tar.gz
Finish the eqn syntactic parser. This correctly parses terms and does
the proper `define' dance, which amounts to pure word-replace (you can, say, define `foo' as `define' then define `define' as something else). eqn.c is now ready for some semantic parsing of `box' and `eqn' productions as defined by the grammar.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index 82798ed3..13a2f001 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -233,11 +233,11 @@ mdoc_addeqn(struct mdoc *m, const struct eqn *ep)
/* No text before an initial macro. */
if (SEC_NONE == m->lastnamed) {
- mdoc_pmsg(m, ep->line, ep->pos, MANDOCERR_NOTEXT);
+ mdoc_pmsg(m, ep->ln, ep->pos, MANDOCERR_NOTEXT);
return(1);
}
- n = node_alloc(m, ep->line, ep->pos, MDOC_MAX, MDOC_EQN);
+ n = node_alloc(m, ep->ln, ep->pos, MDOC_MAX, MDOC_EQN);
n->eqn = ep;
if ( ! node_append(m, n))