=================================================================== RCS file: /cvs/mandoc/mdoc_state.c,v retrieving revision 1.10 retrieving revision 1.13 diff -u -p -r1.10 -r1.13 --- mandoc/mdoc_state.c 2018/08/17 20:33:38 1.10 +++ mandoc/mdoc_state.c 2018/12/31 04:55:47 1.13 @@ -1,4 +1,4 @@ -/* $Id: mdoc_state.c,v 1.10 2018/08/17 20:33:38 schwarze Exp $ */ +/* $Id: mdoc_state.c,v 1.13 2018/12/31 04:55:47 schwarze Exp $ */ /* * Copyright (c) 2014, 2015, 2017 Ingo Schwarze * @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -24,6 +25,7 @@ #include "roff.h" #include "mdoc.h" #include "libmandoc.h" +#include "roff_int.h" #include "libmdoc.h" #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n @@ -175,14 +177,6 @@ mdoc_state(struct roff_man *mdoc, struct roff_node *n) handler = state_handlers[n->tok - MDOC_Dd]; if (*handler) (*handler)(mdoc, n); -} - -void -mdoc_state_reset(struct roff_man *mdoc) -{ - - roff_setreg(mdoc->roff, "nS", 0, '='); - mdoc->flags = 0; } static void