diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-23 19:33:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-23 19:33:27 +0000 |
commit | 562feda136881753a6d27350397fddcabed5f805 (patch) | |
tree | d3f7e0febc857b60794f5ccc3a613666e6a31e39 /mandoc.h | |
parent | c56c17992552256b55134ead16c3e16164fd2e67 (diff) | |
download | mandoc-562feda136881753a6d27350397fddcabed5f805.tar.gz mandoc-562feda136881753a6d27350397fddcabed5f805.tar.zst mandoc-562feda136881753a6d27350397fddcabed5f805.zip |
The upcoming .while request will have to re-execute roff(7) lines
parsed earlier, so they will have to be saved for reuse - but the
read.c preparser does not know yet whether a line contains a .while
request before passing it to the roff parser. To cope with that,
save all parsed lines for now. Even shortens the code by 20 lines.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.250 2018/08/23 14:29:38 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.251 2018/08/23 19:33:27 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org> @@ -462,7 +462,6 @@ const char *mchars_spec2str(const char *, size_t, size_t *); struct mparse *mparse_alloc(int, enum mandocerr, mandocmsg, enum mandoc_os, const char *); void mparse_free(struct mparse *); -void mparse_keep(struct mparse *); int mparse_open(struct mparse *, const char *); enum mandoclevel mparse_readfd(struct mparse *, int, const char *); enum mandoclevel mparse_readmem(struct mparse *, void *, size_t, @@ -470,7 +469,7 @@ enum mandoclevel mparse_readmem(struct mparse *, void *, size_t, void mparse_reset(struct mparse *); void mparse_result(struct mparse *, struct roff_man **, char **); -const char *mparse_getkeep(const struct mparse *); +void mparse_copy(const struct mparse *); const char *mparse_strerror(enum mandocerr); const char *mparse_strlevel(enum mandoclevel); void mparse_updaterc(struct mparse *, enum mandoclevel *); |