source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: improve a comment explaining a particularly nasty hack; no code
@ 2022-05-19 14:49 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2022-05-19 14:49 UTC (permalink / raw)
  To: source

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-19 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 14:49 mandoc: improve a comment explaining a particularly nasty hack; no code schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).