]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-implement comment parsing missing in the internal pre-processor
authorStefan Eßer <se@FreeBSD.org>
Fri, 30 Oct 2020 10:44:46 +0000 (10:44 +0000)
committerStefan Eßer <se@FreeBSD.org>
Fri, 30 Oct 2020 10:44:46 +0000 (10:44 +0000)
commit0f352f4e2593289ded5597ed231e8a66d7d99f62
tree280dd753b0e118a70a891fdc5e1ecad3dbe809fb
parent86e149e16e795419ea49bd937499b9fbfc4d3094
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