home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / relay / article.h < prev    next >
C/C++ Source or Header  |  1990-09-16  |  1KB  |  35 lines

  1. /* :ts=4
  2.  * All the information needed to describe an article as it is processed.
  3.  *
  4.  *    $Log$
  5.  */
  6.  
  7. #define MINSHPTRS 30        /* initial value for sh_alloced */
  8.  
  9. struct article {
  10.     statust a_status;    /* article status bits */
  11.     struct headers h;    /* strictly from headers in input: */
  12.     char *a_haccum;        /* accumulated output headers, if any */
  13.     char *a_hnext;        /* -> first free byte in a_haccum */
  14.     short a_hpalloced;    /* indices in a_hptrs */
  15.     short a_hpused;        /* indices currently in use */
  16.     char **a_hptrs;        /* -> array of ptrs to lines in a_haccum */
  17.     unsigned a_hbytesleft;    /* in a_haccum */
  18.     char *a_files;        /* filenames for history, added in filing, from h.h_ngs */
  19.     char *a_tmpf;        /* temp link name or first spool dir link */
  20.     FILE *a_artf;        /* stream corresponding to a_tmpf */
  21.     boolean a_unlink;    /* true iff a_tmpf should be unlinked when done */
  22.     boolean a_filed;    /* true iff article has been filed */
  23.     boolean a_xref;        /* true iff Xref: header generated yet */
  24.     boolean a_blvmax;    /* true iff a_unread is to be believed */
  25.     long a_charswritten;    /* into spool directory, for batcher */
  26.     long a_unread;        /* bytes of article input yet unread */
  27.     long a_id;        /* article id #, unique within this batch */
  28. };
  29.  
  30. /* return name of at least one link, for printing in error messages, etc. */
  31. #define spoolnm(art) ((art)->a_unlink? (art)->a_tmpf: (art)->a_files)
  32.  
  33. /* imports from article.c */
  34. extern void artinit(), artfree();
  35.