]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix parsing of #ifdef in calendar files
authorse <se@FreeBSD.org>
Wed, 28 Oct 2020 13:06:39 +0000 (13:06 +0000)
committerse <se@FreeBSD.org>
Wed, 28 Oct 2020 13:06:39 +0000 (13:06 +0000)
commit24e34c1b304983cf833cb438e7e39522c64139b1
treea1cf49b8ea2bd746372097bf507f6aa00dfab3ec
parent104dfc3d87c8d2e31375ed8f8790e16f131f1d38
Fix parsing of #ifdef in calendar files

There was code to process an #ifndef tokens, but none for #ifdef.
The #ifdef token was mentioned as unsupported in the BUGS section,
but no reason was given and I do not see why it should stay omitted.

Misleading information in The BUGS section of the man-page regarding
the maximum number of #define and #include statements supported has
been removed. These limits might have applied to a prior version of
this program, but do not seem to apply to the current implementation.

I have not tried to test for the existence of the limits, but the
include file processing just recursively calls the parser (without
counting the recursion depth) and the stringlist functions do not
impose a limit on the number of entries.

Reported by: jhs@berklix.com
MFC after: 3 days
usr.bin/calendar/calendar.1
usr.bin/calendar/io.c