|
|
1.1 ! root 1: /* ! 2: * rparams.h - parameters for readnews, rfuncs, and readr. ! 3: */ ! 4: ! 5: /* @(#)rparams.h 2.23 10/23/86 */ ! 6: ! 7: #include "params.h" ! 8: ! 9: /* flags for readnews */ ! 10: #define pflag options[0].flag ! 11: #define tflag options[1].flag ! 12: #define aflag options[2].flag ! 13: #define nflag options[3].flag ! 14: #define cflag options[4].flag ! 15: #define lflag options[5].flag ! 16: #define rflag options[6].flag ! 17: #define sflag options[7].flag ! 18: #define xflag options[8].flag ! 19: #define hflag options[9].flag ! 20: #define Mflag options[10].flag ! 21: #define fflag options[11].flag ! 22: #define uflag options[12].flag ! 23: #define eflag options[13].flag ! 24: #define Kflag options[14].flag ! 25: ! 26: #define NEXT 0 ! 27: #define SPEC 1 ! 28: ! 29: #define FORWARD 0 ! 30: #define BACKWARD 1 ! 31: ! 32: #define UNKNOWN 0001 /* possible modes for news program */ ! 33: #define MAIL 0004 ! 34: #define ANY 0007 ! 35: ! 36: struct optable { /* options table. */ ! 37: char optlet; /* option character. */ ! 38: char filchar; /* if to pickup string, fill character. */ ! 39: int flag; /* TRUE if have seen this opt. */ ! 40: int newstate; /* STRING if takes arg, else OPTION */ ! 41: int oldmode; /* OR of legal input modes. */ ! 42: int newmode; /* output mode. */ ! 43: char *buf; /* string buffer */ ! 44: }; ! 45: ! 46: /* external declarations specific to readnews */ ! 47: extern char *infile, *outfile, *PAGER, *ALIASES; ! 48: extern char *bitmap, *MAILER, *MAILPARSER; ! 49: ! 50: #ifndef ROOTID ! 51: extern int ROOTID; ! 52: #endif ! 53: ! 54: #ifdef NOTIFY ! 55: extern char *TELLME; ! 56: #endif ! 57: ! 58: extern char filename[],coptbuf[],datebuf[],afline[]; ! 59: extern char newsrc[],groupdir[],rcbuf[],*rcline[],*argvrc[]; ! 60: extern int mode, ngrp, line, newrc(), readmode, news; ! 61: extern long bit, obit, last, ngsize, minartno; ! 62: extern FILE *rcfp,*actfp; ! 63: extern time_t atime; ! 64: extern struct optable *optpt, options[]; ! 65: extern int actdirect, rcreadok, zapng; ! 66: ! 67: #ifndef lint ! 68: /* lint gets very mad about i-minartno, this is one way of shutting it up */ ! 69: /* macros */ ! 70: #define get(i) ((i<minartno)? 0 : (bitmap[(i-minartno) >> 3] & (1 << (i-minartno) % 8))) ! 71: #define set(i) if (i>=minartno) bitmap[(i-minartno) >> 3] |= (1 << (i-minartno) % 8);else ! 72: #define clear(i) if (i>=minartno) bitmap[(i-minartno) >> 3] &= ~(1 << (i-minartno) % 8);else ! 73: #endif /* !lint */ ! 74: ! 75: #define FCLOSE(fp) {if (fp != NULL) {fclose(fp);fp = NULL;}}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.