From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p3BLxdGp007235 for ; Mon, 11 Apr 2011 17:59:39 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p3BLxdhT018966; Mon, 11 Apr 2011 17:59:39 -0400 (EDT) Date: Mon, 11 Apr 2011 17:59:39 -0400 (EDT) Message-Id: <201104112159.p3BLxdhT018966@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Ignore \# lines alongside \". X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Ignore \# lines alongside \". From groff(7): \# Everything up to and including the next newline is ignored. This is interpreted in copy mode. This is like \" except that the terminating newline is ignored as well. Modified Files: -------------- mdocml: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/read.c,v retrieving revision 1.12 retrieving revision 1.13 diff -Lread.c -Lread.c -u -p -r1.12 -r1.13 --- read.c +++ read.c @@ -354,7 +354,7 @@ mparse_buf_r(struct mparse *curp, struct continue; } - if ('"' == blk.buf[i + 1]) { + if ('"' == blk.buf[i + 1] || '#' == blk.buf[i + 1]) { i += 2; /* Comment, skip to end of line */ for (; i < (int)blk.sz; ++i) { -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv