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 | 0278f391fed9ab1da96a2f7737b052872f5ced71 (patch) | |
tree | 3209d60689cc3f76bea249571de0e84eb7269ef8 /libmandoc.h | |
parent | a99c9a30e9f41eb3ce553ac0b2ac6ff963ebe49d (diff) | |
download | mandoc-0278f391fed9ab1da96a2f7737b052872f5ced71.tar.gz |
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 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmandoc.h b/libmandoc.h index 0fb70f86..16af3553 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -28,8 +28,9 @@ enum rofferr { }; struct buf { - char *buf; - size_t sz; + char *buf; + size_t sz; + struct buf *next; }; |