diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-05-15 08:54:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-05-15 08:54:04 +0000 |
commit | 5fadafddea49706c5055def118c8904d73035bcc (patch) | |
tree | f057963290f09cf5a35666f3a40cdd59169db1ea /libmdoc.h | |
parent | 3064cfc6740a059eb0e9762939e5241b95eeba7e (diff) | |
download | mandoc-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.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 *); |