home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / news / misc / eep / eep1_9 / eep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-21  |  2.5 KB  |  72 lines

  1. /*  eep.h
  2.  
  3. This is the common header file for the eep program.
  4.  
  5. */
  6.  
  7. #ifdef UNIX
  8. #define NEWSBASE "/usr/spool/news/"  /* where news lives */
  9. #define ACTIVEFILE "/usr/lib/news/active" /* active file */
  10. #define NEWSGROUPS "/usr/lib/news/newsgroups" /* descriptions of newsgroups */
  11. #define NEWSLOCAL "/usr/lib/news/newslocal" /* local newsgroups */
  12. #define NEWSRC ".newsrc" /* filename for .newsrc */
  13. #define RNLOCK ".rnlock" /* lock file that says rn or trn is active */
  14. #define CRLF    "\n"
  15. #define ALIGNMENT 4      /* some machines need pointers aligned 
  16.                           * on every 4th byte, e.g. PA-RISC */
  17. #define MAXLINES 20000   /* thank Cthulu for virtual memory */
  18. #define MAXARTS 2000    
  19. #define WALLOP_SIZE 32768  /* size used when malloc() called */
  20. #endif /* UNIX */
  21.  
  22. #ifdef DOS
  23. #define NEWSBASE "/news/"  /* where news lives */
  24. #define ACTIVEFILE "active" /* active file */
  25. #define NEWSGROUPS "newsgroups" /* descriptions of newsgroups */
  26. #define NEWSLOCAL "newslocal" /* local newsgroups */
  27. #define NEWSRC "newsrc" /* filename for .newsrc */
  28. #define CRLF    "\r\n"
  29. #define ALIGNMENT 2      /* some machines need pointers aligned 
  30.                           * on every 4th byte, e.g. PA-RISC */
  31. #define MAXLINES 5000   /* max. number of news groups */
  32. #define MAXARTS 600
  33. #define WALLOP_SIZE 8192  /* size used when malloc() called */
  34. #endif /* DOS */
  35.  
  36. #ifndef FALSE
  37. #define FALSE 0        /* this may be redefined elsewhere */
  38. #endif
  39. #ifndef TRUE
  40. #define TRUE 1        /* this may be redefined elsewhere */
  41. #endif
  42. #define VERBOSE TRUE    /* default for verbosity */
  43. #define EEPLINES 24    /* lines shown on screen */
  44. #define EEPCOLUMNS 80    /* columns shown on screen */
  45. #define EEPPAGE EEPLINES-2    /* page size for scrolling */
  46. #define BUFSIZE 4096    /* general line buffer length */
  47. #define MAXLEVELS 20    /* depth of news hierachies */
  48. #define MAXBUFS 1024    /* size of array of pointers to malloc() buffers */
  49.  
  50. /* This is the primary data storage structure.  It combines both the
  51. active file and the .newsrc file.  We'll malloc() space for each
  52. element of the structure, and use an array of pointers to access it
  53. */
  54.  
  55. struct actif    {
  56.  
  57. char    *name,  /* news group */
  58.     *desc,    /* description of newsgroup */
  59.     *hilo;    /* high to low range from my .newsrc */
  60.  
  61. long    hi;     /* hi message number from active file */
  62.  
  63. int    position,    /* used as alternate index into array */
  64.         mark;   /* used to mark groups to be moved */
  65.  
  66. char    flag,    /* [ynm] from active file */
  67.     status;    /* [:!] from .newsrc file */
  68.  
  69. struct  actif *depth;    /* pointer to next entry in ``depth'' list */
  70. };
  71.  
  72.