home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
GNU_ATP_1_40.lzh
/
SRC
/
reader.h
< prev
next >
Wrap
Text File
|
1993-08-29
|
5KB
|
159 lines
/*
ATP QWK MAIL READER FOR READING AND REPLYING TO QWK MAIL PACKETS.
Copyright (C) 1992 Thomas McWilliams
Copyright (C) 1990 Rene Cougnenc
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
reader.h
*/
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define BELL 7
/* character set modes */
#define CHR7BIT 2
#define ISOLAT1 1
#define CHRDOS 0
#define SEPDOS '\\'
#define ERROR 1
#define OK 0
#define EOS 0 /* End of string */
#ifndef size_t
#define size_t int
#endif
/* test for MS-DOS block graphic line drawing character */
#define vtspecial( c ) ( ( ( ( c ) > 0xaf ) && ( ( c ) < 0xe0 ) ) ? 1 : 0 )
#define CONFIG_FILE "atprc"
#define WORK_DIR "atpwork"
#define SCREENLINES screenlen
#ifndef TAGFILE
#define TAGFILE "taglines.atp" /* taglines file */
#endif
#define RESET 0
#define UPDATE 1
/*===== Size limits =========================*/
#define ULZ (unsigned long)
#define MAXCONF 8191 /* Can not exceed 8191 but could be less. */
#define NAMCONF 15 /* Max name length */
#define MYBUF 32768L /* MAX message len .(buffer ) RECEIVED MESSAGE */
#define MAXBUF 153600L /* Worst case message buffer size */
#define MAXSEND 65408L /* MAX message len (buffer ) SENT MESSAGE */
/* about 153,600 bytes, about 2560 lines */
#ifndef MALLOK
#define MALLOK malloc
#define RALLOK realloc
#define MFREE free
#endif
#define MAXPATHS 1024
/*------------------------------------------------------------------------*/
#define REPLY 0
#define ENTER 1
#define EDIT 2
#define YES 1
#define NO 0
#ifndef BYTE_DECL
typedef unsigned char byte ;
#define BYTE_DECL
#endif
/* typedef */
struct MyIndex {
long LastRead ; /* Last Message Read, Used once... */
long MaxMsg ; /* Max Messages allowed in conf. (future use) */
long MsgNum ; /* Number of This message */
long Offset ; /* Offset in the Conference file */
unsigned long Size ; /* Size of the message,with Header */
} ;
/* The last read field is only used in the first structure of the file ... */
extern char CurTag[];
extern long RbufSize ;
extern int SaveConf ;
extern char HomePath []; /* Home directory for exe file & root of msg dirs */
extern char MailPath []; /* Where to look for new mail */
extern char ReplyPath[]; /* Where to put replies */
extern char WorkPath[] ; /* Where to archive /unarchive mail */
extern char CurBoard[] ; /* name of the current board */
extern char Editor []; /* Name of the standard text editor */
extern char Archiver [];
extern char UnArchiver[];
extern struct MyIndex Index ;
extern int CurConf ; /* Name of the current Conference... */
extern long TotMsg ; /* total messages in conf */
extern int ReplyExist ; /* Flag, true if there are replies not packed. */
extern int HeadLetter ; /* Automatic header */
extern int autotag ; /* Automatic tagline selection */
extern int graphics ; /* When TRUE vt100 graphics are enabled */
extern int charset ; /* Flag for ISO, DOS, or 7bit character set */
extern FILE *fidx,*fmsg; /* Files opened for message and index */
extern int FilesOpen ; /* Flag true if these files are opened */
extern char *luxptr ;
extern byte *rbuf; /* Buffer containing current message. */
extern char *txt[]; /* Language-dependent text messages ( general ) */
extern char *hlp[]; /* Language-dependent text messages ( help ) */
extern char *taghlp[]; /* Language-dependent text messages ( tag help ) */
extern char *Months[]; /* Language-dependent text messages (Dates ) */
extern char *terms[]; /* Gnu copyleft message */
/* choo.c */
int ChooseTag();
void TagSeek();
/* makemail.c */
extern int reup();
/* text.c */
void Title();
/* editline.c */
extern char *readline();
/*------------------------- end of reader.h -------------------------------*/