=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_markdown.c,v retrieving revision 1.34 retrieving revision 1.35 diff -c -r1.34 -r1.35 *** src/usr.bin/mandoc/mdoc_markdown.c 2020/02/27 01:25:57 1.34 --- src/usr.bin/mandoc/mdoc_markdown.c 2020/04/03 11:34:19 1.35 *************** *** 1,4 **** ! /* $OpenBSD: mdoc_markdown.c,v 1.34 2020/02/27 01:25:57 schwarze Exp $ */ /* * Copyright (c) 2017, 2018, 2020 Ingo Schwarze * --- 1,4 ---- ! /* $OpenBSD: mdoc_markdown.c,v 1.35 2020/04/03 11:34:19 schwarze Exp $ */ /* * Copyright (c) 2017, 2018, 2020 Ingo Schwarze * *************** *** 13,18 **** --- 13,20 ---- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Markdown formatter for mdoc(7) used by mandoc(1). */ #include *************** *** 29,44 **** #include "main.h" struct md_act { ! int (*cond)(struct roff_node *n); ! int (*pre)(struct roff_node *n); ! void (*post)(struct roff_node *n); const char *prefix; /* pre-node string constant */ const char *suffix; /* post-node string constant */ }; static void md_nodelist(struct roff_node *); static void md_node(struct roff_node *); ! static const char *md_stack(char c); static void md_preword(void); static void md_rawword(const char *); static void md_word(const char *); --- 31,46 ---- #include "main.h" struct md_act { ! int (*cond)(struct roff_node *); ! int (*pre)(struct roff_node *); ! void (*post)(struct roff_node *); const char *prefix; /* pre-node string constant */ const char *suffix; /* post-node string constant */ }; static void md_nodelist(struct roff_node *); static void md_node(struct roff_node *); ! static const char *md_stack(char); static void md_preword(void); static void md_rawword(const char *); static void md_word(const char *);