/* Definition file for minder program */ #include "stdio.h" #define _VMAJ 1 /* Version/major */ #define _VMIN 1 /* Version/minor */ #define getfc agetc #define putfc aputc /* *//* Various constants */ #define _CMLMAX 100 /* Command line length max */ #define _EVFNAM "minder.dat" /* Event file name */ /* Event component codes, for the event data file */ #define _ECMSG 0x0001 /* Message text */ #define _ECFRM 0x0002 /* FROM user name */ #define _ECFOR 0x0003 /* FOR user name */ #define _ECEOE 0xFFFE /* End of entry code */ /* Flag bits in EVT_FLG of the event structure */ #define _EFACT 0x0001 /* Event has become active */ #define _EFACK 0x0002 /* Event requires acknowledgement */ #define _EFRDA 0x0004 /* Requires disposal action */ /* Disposition codes (for EVT_DIS) */ #define _EDDEL 0x0000 /* Delete this event */ #define _EDSCH 0x0001 /* Reschedule */ #define _EDKEEP 0x0002 /* Keep */ /* *//* Structures */ typedef /* Event information */ struct EVTs { struct EVTs *EVT_FLK; /* Forward link */ int EVT_FLG; /* Flags word */ char EVT_DIS; /* Disposition */ char *EVT_NAM; /* Event name */ char *EVT_MSG; /* Event message */ int EVT_DTD; /* Date in CP/M form 1=Jan 1 1978 */ int EVT_DTM; /* Minutes into the date */ char *EVT_FRM; /* Who from */ char *EVT_FOR; /* Who for */ int EVT_ADV; /* Days of advance notice */ char EVT_RSU; /* Reschedule units */ char EVT_RSO; /* Reschedule-original */ int EVT_RSV; /* Reschedule value */ } EVT;