home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume22 / nn6.4 / part21 / articles.h next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.4 KB  |  55 lines

  1. /*
  2.  *    (c) Copyright 1990, Kim Fabricius Storm.  All rights reserved.
  3.  *
  4.  *    Memory handling
  5.  */
  6.  
  7. /* article headers */
  8.  
  9. article_number    n_articles;
  10. article_header     **articles;
  11.  
  12.  
  13. typedef struct thunk {
  14.     char      *this_thunk;
  15.     struct thunk  *next_thunk;
  16.     long      thunk_size;
  17. } thunk;
  18.  
  19.  
  20. typedef struct {
  21.     thunk *sm_cur_t;
  22.     int      sm_size;
  23.     char  *sm_next;
  24. } string_marker;
  25.  
  26.  
  27. typedef struct {
  28.     string_marker mm_string;
  29.     thunk *mm_cur_t;
  30.     int      mm_size;
  31.     article_header *mm_next;
  32.     long mm_nart;
  33. } memory_marker;
  34.  
  35.  
  36. extern article_header *alloc_art();
  37. extern char *alloc_str();
  38.  
  39. /* flags to access_group */
  40.  
  41. #define    ACC_ALSO_CROSS_POSTINGS    FLAG(1)    /*  */
  42. #define    ACC_DONT_SORT_ARTICLES    FLAG(2)    /*  */
  43. #define    ACC_DONT_SPLIT_DIGESTS    FLAG(3)    /* only full digest */
  44. #define    ACC_ALSO_FULL_DIGEST    FLAG(4)    /* also full digest */
  45. #define ACC_EXTRA_ARTICLES    FLAG(5)    /* add to current menu */
  46. #define ACC_ALSO_READ_ARTICLES    FLAG(6)    /*  */
  47. #define ACC_ONLY_READ_ARTICLES    FLAG(7)    /* unread are already collected */
  48. #define ACC_MERGED_MENU        FLAG(8)    /* set a_group field */
  49. #define ACC_ORIG_NEWSRC        FLAG(9)    /* get previously unread articles */
  50. #define ACC_VALIDATE_ONLY    FLAG(10) /* don't save articles */
  51. #define ACC_SPEW_MODE        FLAG(11) /*  */
  52. #define ACC_ON_SENDER        FLAG(12) /* match on sender (only) */
  53. #define ACC_ON_SUBJECT        FLAG(13) /* match on subject (also) */
  54. #define ACC_DO_KILL        FLAG(14) /* do auto-kill/select */
  55.