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 >
Text File  |  1993-08-29  |  5KB  |  159 lines

  1.  
  2. /*
  3.      ATP QWK MAIL READER FOR READING AND REPLYING TO QWK MAIL PACKETS.
  4.      Copyright (C) 1992  Thomas McWilliams 
  5.      Copyright (C) 1990  Rene Cougnenc
  6.      
  7.      This program is free software; you can redistribute it and/or modify
  8.      it under the terms of the GNU General Public License as published by
  9.      the Free Software Foundation; either version 1, or (at your option)
  10.      any later version.
  11.      
  12.      This program is distributed in the hope that it will be useful,
  13.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.      GNU General Public License for more details.
  16.      
  17.      You should have received a copy of the GNU General Public License
  18.      along with this program; if not, write to the Free Software
  19.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. */
  22.  
  23. /*
  24.                                 reader.h 
  25. */
  26.  
  27. #ifndef TRUE
  28. #define TRUE 1
  29. #endif
  30. #ifndef FALSE
  31. #define FALSE 0
  32. #endif 
  33. #define BELL 7
  34.  
  35.                         /* character set modes */
  36. #define CHR7BIT 2                        
  37. #define ISOLAT1 1
  38. #define CHRDOS  0
  39.  
  40. #define SEPDOS '\\'
  41. #define ERROR     1
  42. #define OK        0
  43. #define EOS       0       /* End of string */
  44.  
  45. #ifndef size_t
  46. #define size_t int
  47. #endif
  48.  
  49. /* test for MS-DOS block graphic line drawing character */
  50. #define vtspecial( c )  ( ( ( ( c ) > 0xaf ) && ( ( c ) < 0xe0 ) ) ? 1 : 0 )
  51.  
  52. #define CONFIG_FILE "atprc"
  53. #define WORK_DIR    "atpwork"
  54. #define SCREENLINES  screenlen 
  55.  
  56. #ifndef TAGFILE
  57. #define TAGFILE     "taglines.atp" /* taglines file */
  58. #endif
  59.  
  60. #define RESET 0
  61. #define UPDATE 1
  62.  
  63.  
  64. /*===== Size limits =========================*/
  65.  
  66. #define ULZ (unsigned long)
  67.  
  68.  
  69. #define MAXCONF       8191    /* Can not exceed 8191 but could be less.      */
  70. #define NAMCONF         15    /* Max name length                             */
  71. #define MYBUF        32768L   /* MAX message len .(buffer ) RECEIVED MESSAGE */
  72. #define MAXBUF      153600L   /* Worst case message buffer size              */
  73. #define MAXSEND      65408L    /* MAX message len (buffer ) SENT MESSAGE     */
  74.                               /* about 153,600 bytes, about 2560 lines       */ 
  75.  
  76. #ifndef MALLOK 
  77. #define MALLOK malloc
  78. #define RALLOK realloc
  79. #define MFREE  free
  80. #endif
  81.  
  82. #define MAXPATHS   1024
  83.  
  84. /*------------------------------------------------------------------------*/
  85.  
  86. #define REPLY     0
  87. #define ENTER     1
  88. #define EDIT      2
  89.  
  90. #define YES 1
  91. #define NO  0
  92.  
  93. #ifndef BYTE_DECL
  94. typedef unsigned char byte ;
  95. #define BYTE_DECL
  96. #endif
  97.  
  98. /* typedef */
  99. struct  MyIndex {
  100.          
  101.             long  LastRead  ;    /* Last Message Read, Used once...            */
  102.             long  MaxMsg    ;    /* Max Messages allowed in conf. (future use) */
  103.             long  MsgNum    ;    /* Number of This message                     */
  104.             long  Offset    ;    /* Offset in the Conference file              */
  105.             unsigned long Size ; /* Size of the message,with Header            */
  106.         }  ;
  107.  
  108. /* The last read field is only used in the first structure of the file ...   */
  109.  
  110. extern char CurTag[];
  111. extern long RbufSize ;
  112. extern int  SaveConf ;
  113. extern char HomePath [];   /* Home directory for exe file & root of msg dirs */
  114. extern char MailPath [];   /* Where to look for new mail                     */
  115. extern char ReplyPath[];   /* Where to put replies                           */
  116. extern char WorkPath[] ;   /* Where to archive /unarchive mail               */
  117.  
  118. extern char CurBoard[] ;   /* name of the current board                      */
  119.  
  120. extern char Editor  [];    /* Name of the standard text editor               */
  121. extern char Archiver [];
  122. extern char UnArchiver[];
  123.  
  124. extern struct MyIndex Index ;
  125.  
  126. extern int  CurConf ;     /* Name of the current Conference...             */
  127. extern long TotMsg  ;     /* total messages in conf                        */
  128. extern int ReplyExist ;   /* Flag, true if there are replies not packed.   */
  129. extern int HeadLetter ;   /* Automatic header                              */
  130. extern int autotag    ;   /* Automatic tagline selection                   */
  131. extern int graphics   ;   /* When TRUE vt100 graphics are enabled          */
  132. extern int charset      ;   /* Flag for ISO, DOS, or 7bit character set      */
  133.  
  134. extern FILE *fidx,*fmsg;  /* Files opened for message and index            */
  135. extern int FilesOpen ;    /* Flag true if these files are opened           */
  136. extern char *luxptr ;
  137. extern byte *rbuf;        /* Buffer containing current message.            */
  138. extern char *txt[];       /* Language-dependent text messages ( general  ) */
  139. extern char *hlp[];       /* Language-dependent text messages ( help )     */
  140. extern char *taghlp[];    /* Language-dependent text messages ( tag help ) */
  141. extern char *Months[];    /* Language-dependent text messages (Dates  )    */
  142. extern char *terms[];  /* Gnu copyleft message */
  143.  
  144. /* choo.c */
  145. int ChooseTag();
  146. void TagSeek();
  147.  
  148. /* makemail.c */
  149. extern int reup();
  150.  
  151. /* text.c */
  152. void Title();
  153.  
  154. /* editline.c */
  155. extern char    *readline();
  156.  
  157. /*------------------------- end of reader.h -------------------------------*/
  158.  
  159.