summaryrefslogtreecommitdiffstats
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-05-15 08:54:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-05-15 08:54:04 +0000
commit5fadafddea49706c5055def118c8904d73035bcc (patch)
treef057963290f09cf5a35666f3a40cdd59169db1ea /libmdoc.h
parent3064cfc6740a059eb0e9762939e5241b95eeba7e (diff)
downloadmandoc-5fadafddea49706c5055def118c8904d73035bcc.tar.gz
Distinguish OPEN, MIDDLE and CLOSE delimiters (using an enum).
Only OPEN are drawn before the beginning of a macro; this is new, before this, MIDDLE ('|') were drawn in front, too. Only CLOSE are pushed after the end of a macro (as before). ok kristaps@
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libmdoc.h b/libmdoc.h
index cff9a62b..a8e8a6fc 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -131,6 +131,13 @@ enum margverr {
ARGV_WORD
};
+enum mdelim {
+ DELIM_NONE = 0,
+ DELIM_OPEN,
+ DELIM_MIDDLE,
+ DELIM_CLOSE
+};
+
extern const struct mdoc_macro *const mdoc_macros;
__BEGIN_DECLS
@@ -161,8 +168,8 @@ int mdoc_body_alloc(struct mdoc *, int, int, enum mdoct);
void mdoc_node_delete(struct mdoc *, struct mdoc_node *);
void mdoc_hash_init(void);
enum mdoct mdoc_hash_find(const char *);
-int mdoc_iscdelim(char);
-int mdoc_isdelim(const char *);
+enum mdelim mdoc_iscdelim(char);
+enum mdelim mdoc_isdelim(const char *);
size_t mdoc_isescape(const char *);
enum mdoc_sec mdoc_str2sec(const char *);
time_t mdoc_atotime(const char *);