=================================================================== RCS file: /cvs/mandoc/roff.h,v retrieving revision 1.35 retrieving revision 1.38 diff -u -p -r1.35 -r1.38 --- mandoc/roff.h 2015/10/17 00:21:07 1.35 +++ mandoc/roff.h 2017/01/10 12:53:08 1.38 @@ -1,7 +1,7 @@ -/* $OpenBSD: roff.h,v 1.35 2015/10/17 00:21:07 schwarze Exp $ */ +/* $Id: roff.h,v 1.38 2017/01/10 12:53:08 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons - * Copyright (c) 2013, 2014, 2015 Ingo Schwarze + * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -93,7 +93,6 @@ struct roff_node { char *string; /* TEXT */ const struct tbl_span *span; /* TBL */ const struct eqn *eqn; /* EQN */ - int nchild; /* Number of child nodes. */ int line; /* Input file line number. */ int pos; /* Input file column number. */ int tok; /* Request or macro ID. */ @@ -110,6 +109,8 @@ struct roff_node { #define MAN_VALID MDOC_VALID #define MAN_EOS MDOC_EOS #define MAN_LINE MDOC_LINE +#define NODE_NOSRC (1 << 8) /* Generated node, not in input file. */ +#define NODE_NOPRT (1 << 9) /* Shall not print anything. */ int prev_font; /* Before entering this node. */ int aux; /* Decoded node data, type-dependent. */ enum roff_type type; /* AST node type. */ @@ -161,8 +162,5 @@ struct roff_man { enum roff_next next; /* Where to put the next node. */ }; -__BEGIN_DECLS void deroff(char **, const struct roff_node *); - -__END_DECLS