diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-27 16:18:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-27 16:18:13 +0000 |
commit | dc95dcaff23f7235529d0b5d9866a252ca3f8c06 (patch) | |
tree | 33263f6d49184bc0c76b80cf9d91e5409c3d3e16 /mdoc.h | |
parent | dc649a73f967c1a61e60d2495f16d56db82eac57 (diff) | |
download | mandoc-dc95dcaff23f7235529d0b5d9866a252ca3f8c06.tar.gz mandoc-dc95dcaff23f7235529d0b5d9866a252ca3f8c06.tar.zst mandoc-dc95dcaff23f7235529d0b5d9866a252ca3f8c06.zip |
Following clue-stick applied by schwarze@, back out const-ness of regset
passed in to libmdoc and libman.
Fix mdoc.3 and man.3 EXAMPLE sections to include regset.
Add MDOC_SYNPRETTY flag cueing front-end to nicely format certain values
as if SEC_SYNOPSIS were the current section.
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.93 2010/06/27 15:52:41 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.94 2010/06/27 16:18:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -301,6 +301,7 @@ struct mdoc_node { #define MDOC_ACTED (1 << 1) /* has been acted upon */ #define MDOC_EOS (1 << 2) /* at sentence boundary */ #define MDOC_LINE (1 << 3) /* first macro/text on line */ +#define MDOC_SYNPRETTY (1 << 4) /* SYNOPSIS-style formatting */ 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. */ @@ -333,7 +334,7 @@ struct mdoc; /* See mdoc.3 for documentation. */ void mdoc_free(struct mdoc *); -struct mdoc *mdoc_alloc(const struct regset *, void *, int, mandocmsg); +struct mdoc *mdoc_alloc(struct regset *, void *, int, mandocmsg); void mdoc_reset(struct mdoc *); int mdoc_parseln(struct mdoc *, int, char *, int); const struct mdoc_node *mdoc_node(const struct mdoc *); |