Define a useful macro.

This commit is contained in:
Dianne Skoll
2025-10-07 09:01:14 -04:00
parent 7729d61adc
commit 0ecca26da8
2 changed files with 3 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ int main(int argc, char *argv[])
atexit(exitfunc);
if (DoCalendar || (DoSimpleCalendar && (!NextMode || PsCal))) {
if (IsCalendarMode()) {
ProduceCalendar();
return 0;
}

View File

@@ -35,6 +35,8 @@
#define isempty(c) (isspace(c) || ((c) == '\\'))
#define IsServerMode() (Daemon < 0)
#define IsCalendarMode() (DoCalendar || (DoSimpleCalendar && (!NextMode || PsCal)))
#define ShouldFork (!DontFork)
#include "dynbuf.h"