home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / articles.h < prev    next >
C/C++ Source or Header  |  1995-04-29  |  2KB  |  69 lines

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