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

  1. /************************************************************************/
  2. /*    Copyright 1988-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.  This     */
  15. /*    software may not be sold without the prior explicit permission    */
  16. /*    of Harris Corporation.                        */
  17. /************************************************************************/
  18.  
  19. /************************************************************************/
  20. /*                                    */
  21. /*    contool.h    internal contool data structures        */
  22. /*                                    */
  23. /************************************************************************/
  24.  
  25. #define        is_null(x)        ((x)? x : "")
  26.  
  27. #define        BEEP_BIT        0x01
  28. #define        COMMAND_BIT        0x02
  29. #define        FLASH_BIT        0x04
  30. #define        OPEN_BIT        0x08
  31. #define        STAMP_BIT        0x10
  32.  
  33. typedef    struct    filter    Filter;
  34. typedef    struct    props    Props;
  35.  
  36. struct    filter    {char    *start;
  37.          char    *start_re;
  38.          int    start_circf;
  39.          char    *stop;
  40.          char    *stop_re;
  41.          int    stop_circf;
  42.          char    *comment;
  43.          int    save;
  44.          int    beep;
  45.          int    flash;
  46.          int    open;
  47.          int    stamp;
  48.          char    *command;
  49.          Filter    *next;
  50.         };
  51.  
  52. struct    props    {int    beep;
  53.          int    flash;
  54.          int    open;
  55.          int    stamp;
  56.          char    *command;
  57.          char    *good_icon;
  58.          char    *bad_icon;
  59.          char    *flash_icon;
  60.          char    *print_filter;
  61.          char    *log_file;
  62.          int    log_after;
  63.          int    stamp_resolution;
  64.          int    max_size;
  65.          int    delete_amount;
  66.         };
  67.  
  68. PUBLIC    char    *compile_exp();
  69. PUBLIC    char    *expand_tilde();
  70.  
  71. PUBLIC    Props    defaults;
  72. PUBLIC    Props    *parsed_defaults;
  73. PUBLIC    Filter    *parsed_filters;
  74. PUBLIC    Filter    *filters;
  75. PUBLIC    int    parse_errors_occured;
  76. PUBLIC    char    *filter_file;
  77.