diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 09:16:38 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 09:16:38 +0000 |
commit | 154c74a463b9f4d0c87a3161a60df5ce17c366c9 (patch) | |
tree | 71d24bb33de21624f0ddc202816da1a8e7025f9b /libmdoc.h | |
parent | 92c367a844f2f26d325d4ee6ca032894e94f7a06 (diff) | |
download | mandoc-154c74a463b9f4d0c87a3161a60df5ce17c366c9.tar.gz mandoc-154c74a463b9f4d0c87a3161a60df5ce17c366c9.tar.zst mandoc-154c74a463b9f4d0c87a3161a60df5ce17c366c9.zip |
Move mdoc_isdelim() into mandoc.h as mandoc_isdelim(). This allows the
removal of manual delimiter checks in html.c and term.c. Finally, add
the escaped period as a closing delimiter, removing a TODO to this
effect.
Diffstat (limited to 'libmdoc.h')
-rw-r--r-- | libmdoc.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.64 2011/03/17 01:23:28 kristaps Exp $ */ +/* $Id: libmdoc.h,v 1.65 2011/03/17 09:16:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -81,13 +81,6 @@ 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 @@ -114,8 +107,6 @@ int mdoc_endbody_alloc(struct mdoc *m, int line, int pos, void mdoc_node_delete(struct mdoc *, struct mdoc_node *); void mdoc_hash_init(void); enum mdoct mdoc_hash_find(const char *); -#define DELIMSZ 6 /* maximum size of a delimiter string */ -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 *); |