aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-27 15:52:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-27 15:52:41 +0000
commitdc649a73f967c1a61e60d2495f16d56db82eac57 (patch)
tree219a85e24404486b7c0136c293975e680de9c05d /mdoc.h
parent0d82fb509497f4929c0d0c2c4619f27aa7fc0052 (diff)
downloadmandoc-dc649a73f967c1a61e60d2495f16d56db82eac57.tar.gz
mandoc-dc649a73f967c1a61e60d2495f16d56db82eac57.tar.zst
mandoc-dc649a73f967c1a61e60d2495f16d56db82eac57.zip
Downstream maintainers: this removes UGLY! I don't want diverging
functionality and UGLY works quite well thanks to schwarze@'s careful attention. This also backs out function-prototype changes for struct regset, instead stuffing a pointer to the regset directly into struct mdoc/man/roff.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/mdoc.h b/mdoc.h
index dc4be587..19e52e23 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.92 2010/06/26 15:36:37 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.93 2010/06/27 15:52:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -303,10 +303,9 @@ struct mdoc_node {
#define MDOC_LINE (1 << 3) /* first macro/text on line */
enum mdoc_type type; /* AST node type */
enum mdoc_sec sec; /* current named section */
+ /* FIXME: these can be union'd to shave a few bytes. */
struct mdoc_arg *args; /* BLOCK/ELEM */
-#ifdef UGLY
struct mdoc_node *pending; /* BLOCK */
-#endif
struct mdoc_node *head; /* BLOCK */
struct mdoc_node *body; /* BLOCK */
struct mdoc_node *tail; /* BLOCK */
@@ -334,11 +333,9 @@ struct mdoc;
/* See mdoc.3 for documentation. */
void mdoc_free(struct mdoc *);
-struct mdoc *mdoc_alloc(void *, int, mandocmsg);
+struct mdoc *mdoc_alloc(const struct regset *, void *, int, mandocmsg);
void mdoc_reset(struct mdoc *);
-int mdoc_parseln(struct mdoc *,
- const struct regset *,
- int, char *, int);
+int mdoc_parseln(struct mdoc *, int, char *, int);
const struct mdoc_node *mdoc_node(const struct mdoc *);
const struct mdoc_meta *mdoc_meta(const struct mdoc *);
int mdoc_endparse(struct mdoc *);