]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-implement comment parsing missing in the internal pre-processor
authorse <se@FreeBSD.org>
Fri, 30 Oct 2020 10:44:46 +0000 (10:44 +0000)
committerse <se@FreeBSD.org>
Fri, 30 Oct 2020 10:44:46 +0000 (10:44 +0000)
commiteaf6a6f9008497984fd922cd86b6fd514832c2a9
tree280dd753b0e118a70a891fdc5e1ecad3dbe809fb
parent6a97876998a0d31c01a8cb423dc630c5316aa4e4
Re-implement comment parsing missing in the internal pre-processor

The internal pre-processor ignored lines that did not parse a calendar
entries, but did not support multi-line comments in the way the external
cpp did.

The calendar files distributed with the base system (now in a port) do
use comments, though.

Implement comment processing for single-line (//) and multi-line comments
(/* */) with same semantics as in a standard C pre-processor.

All tests pass with this version, but there are no tests that specifically
verify comment processing.

Reported by: jhs@berklix.com (Julian H. Stacey)
MFC after: 3 days
usr.bin/calendar/io.c