HomeFreeBSD

usr.bin/calendar: do not treat // in text as comment

Description

usr.bin/calendar: do not treat // in text as comment

The C++-style comment marker "//" has been added with the rewrite of
the preprocessor features. Since this character sequence occurs in
ULRS, the reminder of the URL was considered a comment and stripped
from the calendar line.

Change parsing of "//" to only start a comment at the begin of a line
or when preceeded by a white-space character.

(cherry picked from commit 35b8fd0b699a20f71d5636069347b243eb336979)

Details

Provenance
seAuthored on Jun 7 2021, 1:46 PM
Parents
rGed726c3e34d8: powerpc64: fix loader regression
Branches
Unknown
Tags
Unknown