home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / vn.jan.88 / part04 / page.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-01-30  |  1.1 KB  |  51 lines

  1. /*
  2. ** vn news reader.
  3. **
  4. ** page.h - display page structure
  5. **
  6. ** see copyright disclaimer / history in vn.c source file
  7. */
  8.  
  9. /*
  10.     page display format and dependent parameters
  11. */
  12. #define HFORMAT "\n%s (page %d of %d):"
  13. #define DHFORMAT "\n%s (DIGEST EXTRACTION):"
  14. #define TFORMAT "%s ~ %s %s"
  15. #define AFORMAT "\n%c%c%d) "    /* begin with newline - see show routine */
  16. #define AFLEN 5        /* min. char. in article id - depends on AFORMAT */
  17. #define CFORMAT "page %d of %d (%d shown), newsgroup %d of %d"
  18. #define RECBIAS 2    /* lines before articles - depends on HFORMAT */
  19. #define WRCOL 1        /* column of written mark.  depends on AFORMAT */
  20. #define INFOLINE 0    /* HFORMAT TFORMAT leaves for use */
  21. #define REQLINES 7    /* required terminal lines for display, incl. help */
  22.  
  23. /*
  24.     newsgroup information for page display
  25.     name - of group
  26.     group - pointer to table entry
  27.     artnum - number of articles
  28. */
  29. typedef struct
  30. {
  31.     char *name;
  32.     NODE *group;
  33.     int artnum;
  34. } HEAD;
  35.  
  36. /*
  37.     article information - id (spool) number, title string, mark, written.
  38. */
  39. typedef struct
  40. {
  41.     int art_id;
  42.     char art_mark;
  43.     char art_t[MAX_C-AFLEN];
  44. } BODY;
  45.  
  46. typedef struct
  47. {
  48.     HEAD h;
  49.     BODY *b;
  50. } PAGE;
  51.