diff options
author | 2010-05-15 08:54:04 +0000 | |
---|---|---|
committer | 2010-05-15 08:54:04 +0000 | |
commit | 63754be3d9019deac1f78cdebeff57c4a0d9c617 (patch) | |
tree | fd2309c50b8d3287a4ae6061d5f0505e5b0f9aa2 /libmdoc.h | |
parent | cb2511813cb340eccf84d29f8f39c3c5a9a24090 (diff) | |
download | mandoc-63754be3d9019deac1f78cdebeff57c4a0d9c617.tar.gz mandoc-63754be3d9019deac1f78cdebeff57c4a0d9c617.tar.zst mandoc-63754be3d9019deac1f78cdebeff57c4a0d9c617.zip |
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 | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.45 2010/05/15 04:47:38 kristaps Exp $ */ +/* $Id: libmdoc.h,v 1.46 2010/05/15 08:54:04 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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 *); |