home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
networking
/
uucp
/
amigauucpsrc
/
dnews
/
defs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-29
|
1KB
|
62 lines
/*
* DEFS.H
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "config.h"
#include "version.h"
#define arysize(ary) (sizeof(ary)/sizeof((ary)[0]))
#define TMPBSIZE 2048
#define FNHASHSIZE 64
#define FNHASHMASK (FNHASHSIZE-1)
#undef NULL
#define NULL ((void *)0L)
#define CTRL(x) ((x) & 0x1F)
typedef struct Range {
struct Range *Next;
short SNo;
short ENo;
} Range;
typedef struct FNode {
struct FNode *Next;
long MsgNo;
char *Id;
} FNode;
typedef struct NewsGroup {
struct NewsGroup *Next;
char *Name;
short Enabled;
short Flags;
short MaxNo; /* last article */
short CurNo; /* current article */
short PrevNo[32]; /* previous articles */
short Unread;
Range *RList; /* articles read */
Range *MList; /* articles marked */
Range *KList; /* articles killed */
FNode **IdBase; /* cached message IDs */
FNode **RefBase; /* cached References: */
FNode **SubBase; /* cached Subject: */
FNode **FromBase; /* cached From: */
void *DispFd; /* XXX display descriptor */
} NGroup;
#define GROUPF_REDISPLAY 0x0002
extern char TmpBuf[TMPBSIZE];
#include "dnews_protos.h"