From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9562 invoked from network); 19 May 2022 14:49:29 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 19 May 2022 14:49:29 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 107669ad for ; Thu, 19 May 2022 09:49:26 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id bc8c54fb for ; Thu, 19 May 2022 09:49:26 -0500 (EST) Date: Thu, 19 May 2022 09:49:26 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: improve a comment explaining a particularly nasty hack; no code X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <33653350361650b5@mandoc.bsd.lv> Log Message: ----------- improve a comment explaining a particularly nasty hack; no code change Modified Files: -------------- mandoc: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/read.c,v retrieving revision 1.220 retrieving revision 1.221 diff -Lread.c -Lread.c -u -p -r1.220 -r1.221 --- read.c +++ read.c @@ -261,7 +261,12 @@ mparse_buf_r(struct mparse *curp, struct lastln = thisln; } - /* XXX Ugly hack to mark the end of the input. */ + /* + * XXX Ugly hack to mark the end of the input, + * such that the function roff_parse_comment() + * doesn't attempt to append another line if the + * last input line ends with an escape character. + */ if (i == blk.sz || blk.buf[i] == '\0') { if (pos + 2 > ln.sz) -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv