diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 10:24:35 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 10:24:35 +0000 |
commit | fee8aca887653490f8c052e474d2a620140e741d (patch) | |
tree | e70cabf49ec8c391686a906b8b1ee2c861acb251 /man.c | |
parent | 06de568c21235414d9aeaf92aef7127950caa2bf (diff) | |
download | mandoc-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 'man.c')
-rw-r--r-- | man.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.108 2011/07/18 07:46:41 kristaps Exp $ */ +/* $Id: man.c,v 1.109 2011/07/21 10:24:35 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -371,14 +371,14 @@ man_addeqn(struct man *m, const struct eqn *ep) assert( ! (MAN_HALT & m->flags)); - n = man_node_alloc(m, ep->line, ep->pos, MAN_EQN, MAN_MAX); + n = man_node_alloc(m, ep->ln, ep->pos, MAN_EQN, MAN_MAX); n->eqn = ep; if ( ! man_node_append(m, n)) return(0); m->next = MAN_NEXT_SIBLING; - return(man_descope(m, ep->line, ep->pos)); + return(man_descope(m, ep->ln, ep->pos)); } int |