summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-23 19:32:04 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-23 19:32:04 +0000
commit34f5048aa9e64801f60b8d6fc6001b61f847e2df (patch)
tree8e6208782bf5d685a3e36fcb99cc09f0032c2c99 /usr.bin/mandoc/libmandoc.h
parent39ddc1f79500964f3b22a0fe323a568fcc87fc83 (diff)
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 'usr.bin/mandoc/libmandoc.h')
-rw-r--r--usr.bin/mandoc/libmandoc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mandoc/libmandoc.h b/usr.bin/mandoc/libmandoc.h
index ba69e4d38be..336614c360a 100644
--- a/usr.bin/mandoc/libmandoc.h
+++ b/usr.bin/mandoc/libmandoc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libmandoc.h,v 1.57 2018/08/23 14:16:12 schwarze Exp $ */
+/* $OpenBSD: libmandoc.h,v 1.58 2018/08/23 19:32:03 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -28,8 +28,9 @@ enum rofferr {
};
struct buf {
- char *buf;
- size_t sz;
+ char *buf;
+ size_t sz;
+ struct buf *next;
};