summaryrefslogtreecommitdiffstats
path: root/tag.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-07-28 18:38:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-07-28 18:38:55 +0000
commit2510486fc44a83002c7f77dfeaf94603b0cea866 (patch)
tree3e36cacc3887baa8d0d907ce8105b0b7e0314f98 /tag.h
parentce6fe8383153d10dc1f75f86c3f8fab0d32e2290 (diff)
downloadmandoc-2510486fc44a83002c7f77dfeaf94603b0cea866.tar.gz
Remove the hack of scrolling forward and backward with +G1G that
many (jmc@, millert@, espie@, deraadt@) considered revolting. Instead, when using a pager, since we are using a temporary file for tags anyway, use another temporary file for the formatted page(s), as suggested by millert@ and similar to what the traditional BSD man(1) did, except that we use only one single temporary output file rather than one for each formatted manual page, such that searching (both with / and :t) works across all the displayed files.
Diffstat (limited to 'tag.h')
-rw-r--r--tag.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tag.h b/tag.h
index a1af255a..8a32c11c 100644
--- a/tag.h
+++ b/tag.h
@@ -15,9 +15,16 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+struct tag_files {
+ char ofn[20];
+ char tfn[20];
+ int ofd;
+ int tfd;
+};
+
__BEGIN_DECLS
-char *tag_init(void);
+struct tag_files *tag_init(void);
void tag_put(const char *, int, size_t);
void tag_write(void);
void tag_unlink(void);