home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / x / volume10 / boss / part01 / manifest.h < prev    next >
C/C++ Source or Header  |  1990-10-18  |  2KB  |  65 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. /*    Various manifest definitions                    */
  25. /*                                    */
  26. /************************************************************************/
  27.  
  28. #define        strsave(x)    ((char *) strcpy(malloc(strlen(x) + 1), x))
  29.  
  30. #define        PRIVATE        static
  31. #define        PUBLIC        extern
  32. #define        EXPORT
  33.  
  34. #ifndef    TRUE
  35. #define        TRUE        1
  36. #define        FALSE        0
  37. #endif
  38.  
  39. #ifndef    NULL
  40. #define        NULL        0
  41. #endif
  42.  
  43. #define        INVALID_TIME    255
  44.  
  45. #define        CASIO_END_LINE    '\015'
  46. #define        CASIO_END_ENTRY    '\012'
  47.  
  48. typedef    unsigned    char    byte;
  49. typedef    unsigned    short    word;
  50.  
  51. typedef    struct    t_rec    time;
  52. typedef    struct    d_rec    date;
  53.  
  54. struct    t_rec    {byte    hour;
  55.          byte    minute;
  56.         };
  57.  
  58. struct    d_rec    {word    year;
  59.          byte    month;
  60.          byte    day;
  61.         };
  62.  
  63. PUBLIC    long    ascii_to_long();
  64. PUBLIC    char    **tokenize();
  65.