summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-11-03 22:13:16 +0000
committerStefan Eßer <se@FreeBSD.org>2020-11-03 22:13:16 +0000
commit321b3540eb1afc2617b5ee3eb89ed98e02d2f311 (patch)
tree356ddf4c0ec6cbb92802e3eaaafe9c6c478f4a53 /usr.bin
parent32fbec42f54ce275adce4a69af0104f736ac9a91 (diff)
downloadsrc-test-321b3540eb1afc2617b5ee3eb89ed98e02d2f311.tar.gz
src-test-321b3540eb1afc2617b5ee3eb89ed98e02d2f311.zip
Update man-page to document changes made to the calendar program.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=367308
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/calendar/calendar.120
1 files changed, 14 insertions, 6 deletions
diff --git a/usr.bin/calendar/calendar.1 b/usr.bin/calendar/calendar.1
index 240c74d571fe7..eeadc92152b7a 100644
--- a/usr.bin/calendar/calendar.1
+++ b/usr.bin/calendar/calendar.1
@@ -198,12 +198,20 @@ file is preprocessed by a limited subset of
.Xr cpp 1
internally, allowing the inclusion of shared files such as
lists of company holidays or meetings.
-This limited subset consists of \fB#include #ifdef #ifndef #else
-#endif\fR and \fB#define\fR. Conditions can be nested, but not check
-for matching begin and end directives is performed.
-Included files are parsed in their own scope.
-They have no read or write access to condition variables defined in
-an outer scope and open conditional blocks are implicitly closed.
+This limited subset consists of \fB#include\fR, \fB#define\fR,
+\fB#undef\fR, \fB#ifdef\fR, \fB#ifndef\fR, and \fB#else\fR.
+.Pp
+Conditions can be nested and the consistency of opening and closing
+instructions is checked.
+Only the first word after #define is used as the name of the
+condition variable being defined.
+More than word following #ifdef, #ifndef, or #undef is a ayntax
+error, since names cannot include white-space.
+Included files are parsed in a global scope with regard to the condition
+variables being defined or tested therein.
+All conditional blocks are implicitly closed at the end of a file,
+and missing #endif instructions are assumed to be present on implied
+succeeding lines.
.Pp
If the shared file is not referenced by a full pathname,
.Nm