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 >
Wrap
C/C++ Source or Header
|
1990-09-16
|
1KB
|
35 lines
/* :ts=4
* All the information needed to describe an article as it is processed.
*
* $Log$
*/
#define MINSHPTRS 30 /* initial value for sh_alloced */
struct article {
statust a_status; /* article status bits */
struct headers h; /* strictly from headers in input: */
char *a_haccum; /* accumulated output headers, if any */
char *a_hnext; /* -> first free byte in a_haccum */
short a_hpalloced; /* indices in a_hptrs */
short a_hpused; /* indices currently in use */
char **a_hptrs; /* -> array of ptrs to lines in a_haccum */
unsigned a_hbytesleft; /* in a_haccum */
char *a_files; /* filenames for history, added in filing, from h.h_ngs */
char *a_tmpf; /* temp link name or first spool dir link */
FILE *a_artf; /* stream corresponding to a_tmpf */
boolean a_unlink; /* true iff a_tmpf should be unlinked when done */
boolean a_filed; /* true iff article has been filed */
boolean a_xref; /* true iff Xref: header generated yet */
boolean a_blvmax; /* true iff a_unread is to be believed */
long a_charswritten; /* into spool directory, for batcher */
long a_unread; /* bytes of article input yet unread */
long a_id; /* article id #, unique within this batch */
};
/* return name of at least one link, for printing in error messages, etc. */
#define spoolnm(art) ((art)->a_unlink? (art)->a_tmpf: (art)->a_files)
/* imports from article.c */
extern void artinit(), artfree();