aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitfee8aca887653490f8c052e474d2a620140e741d (patch)
treee70cabf49ec8c391686a906b8b1ee2c861acb251 /mdoc.c
parent06de568c21235414d9aeaf92aef7127950caa2bf (diff)
downloadmandoc-fee8aca887653490f8c052e474d2a620140e741d.tar.gz
mandoc-fee8aca887653490f8c052e474d2a620140e741d.tar.zst
mandoc-fee8aca887653490f8c052e474d2a620140e741d.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index a648e9a5..29c5ec55 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.189 2011/07/18 07:46:41 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.190 2011/07/21 10:24:35 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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))