home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / AZTEC-C / MINDER.ARK / MINDER.H < prev    next >
C/C++ Source or Header  |  1986-06-19  |  2KB  |  66 lines

  1. /* Definition file for minder program */
  2.  
  3. #include "stdio.h"
  4.  
  5.  
  6. #define    _VMAJ    1            /* Version/major */
  7. #define    _VMIN    1            /* Version/minor */
  8.  
  9.  
  10.  
  11.  
  12. #define    getfc    agetc
  13. #define    putfc    aputc
  14.  
  15. /* *//* Various constants */
  16.  
  17.  
  18. #define    _CMLMAX    100            /* Command line length max */
  19. #define    _EVFNAM    "minder.dat"        /* Event file name */
  20.  
  21.  
  22.     /* Event component codes, for the event data file */
  23.  
  24. #define    _ECMSG    0x0001            /* Message text */
  25. #define    _ECFRM    0x0002            /* FROM user name */
  26. #define    _ECFOR    0x0003            /* FOR user name */
  27.  
  28. #define    _ECEOE    0xFFFE            /* End of entry code */
  29.  
  30.  
  31.  
  32.     /* Flag bits in EVT_FLG of the event structure */
  33.  
  34. #define    _EFACT    0x0001            /* Event has become active */
  35. #define    _EFACK    0x0002            /* Event requires acknowledgement */
  36. #define    _EFRDA    0x0004            /* Requires disposal action */
  37.  
  38.  
  39.  
  40.     /* Disposition codes (for EVT_DIS) */
  41.  
  42. #define    _EDDEL    0x0000            /* Delete this event */
  43. #define    _EDSCH    0x0001            /* Reschedule */
  44. #define    _EDKEEP    0x0002            /* Keep */
  45. /* *//* Structures */
  46.  
  47.  
  48. typedef                    /* Event information */
  49.   struct EVTs
  50.     {
  51.     struct EVTs *EVT_FLK;        /* Forward link */
  52.     int        EVT_FLG;        /* Flags word */
  53.     char    EVT_DIS;        /* Disposition */
  54.     char    *EVT_NAM;        /* Event name */
  55.     char    *EVT_MSG;        /* Event message */
  56.     int        EVT_DTD;        /* Date in CP/M form 1=Jan 1 1978 */
  57.     int        EVT_DTM;        /* Minutes into the date */
  58.     char    *EVT_FRM;        /* Who from */
  59.     char    *EVT_FOR;        /* Who for */
  60.     int        EVT_ADV;        /* Days of advance notice */
  61.     char    EVT_RSU;        /* Reschedule units */
  62.     char    EVT_RSO;        /* Reschedule-original */
  63.     int        EVT_RSV;        /* Reschedule value */
  64.     }
  65.   EVT;
  66.