home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / x / volume10 / boss / part01 / calentool.h next >
C/C++ Source or Header  |  1990-10-18  |  2KB  |  58 lines

  1. /************************************************************************/
  2. /*    Copyright 1990 by Chuck Musciano and Harris Corporation        */
  3. /*                                    */
  4. /*    Permission to use, copy, modify, and distribute this software    */
  5. /*    and its documentation for any purpose and without fee is    */
  6. /*    hereby granted, provided that the above copyright notice    */
  7. /*    appear in all copies and that both that copyright notice and    */
  8. /*    this permission notice appear in supporting documentation, and    */
  9. /*    that the name of Chuck Musciano and Harris Corporation not be    */
  10. /*    used in advertising or publicity pertaining to distribution    */
  11. /*    of the software without specific, written prior permission.    */
  12. /*    Chuck Musciano and Harris Corporation make no representations    */
  13. /*    about the suitability of this software for any purpose.  It is    */
  14. /*    provided "as is" without express or implied warranty.        */
  15. /*                                    */
  16. /*    This code contains data and information that is proprietary    */
  17. /*    to Casio Corporation.  You may be subject to legal action if    */
  18. /*    this information is released without explicit permission from    */
  19. /*    Casio.                                */
  20. /************************************************************************/
  21.  
  22. /************************************************************************/
  23. /*                                    */
  24. /*    calentool.h    definitions for using calentool files        */
  25. /*                                    */
  26. /************************************************************************/
  27.  
  28. #define        LINE_COMMENT        0
  29. #define        LINE_APPOINTMENT    1
  30. #define        LINE_BLANK        2
  31.  
  32. #define        SUNDAY            -1
  33. #define        MONDAY            -2
  34. #define        TUESDAY            -3
  35. #define        WEDNESDAY        -4
  36. #define        THURSDAY        -5
  37. #define        FRIDAY            -6
  38. #define        SATURDAY        -7
  39. #define        WILDCARD        -8
  40.  
  41. typedef    struct    c_rec    calen;
  42.  
  43. struct    c_rec    {int    kind;
  44.          int    year;
  45.          int    month;
  46.          int    day;
  47.          int    hour;
  48.          int    minute;
  49.          int    length;
  50.          int    repeat;
  51.          char    *interval;
  52.          char    *warning;
  53.          char    *message;
  54.          calen    *next;
  55.         };
  56.  
  57. PUBLIC    calen    *load_calentool();
  58.