home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MAXMAILP.ZIP / MAX_MSG.H < prev    next >
C/C++ Source or Header  |  1990-10-12  |  5KB  |  86 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MAXIMUS-CBCS Source Code, Version 1.02                                 *
  4.  *  Copyright 1989, 1990 by Scott J. Dudley.  All rights reserved.         *
  5.  *                                                                         *
  6.  *  Message-area header file                                               *
  7.  *                                                                         *
  8.  *  For complete details of the licensing restrictions, please refer to    *
  9.  *  the licence agreement, which is published in its entirety in MAX.C     *
  10.  *  and LICENCE.MAX.                                                       *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MAXIMUS-CBCS LICENSING AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF THIS *
  14.  *  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES, OR IF YOU DO NOT HAVE   *
  15.  *  THESE FILES, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT ONE OF THE   *
  16.  *  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO USE THIS    *
  17.  *  FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE MAXIMUS-CBCS LICENSING   *
  18.  *  AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE ABLE TO REACH WITH THE   *
  19.  *  AUTHOR.                                                                *
  20.  *                                                                         *
  21.  *  You can contact the author at one of the address listed below:         *
  22.  *                                                                         *
  23.  *  Scott Dudley           FidoNet  1:249/106                              *
  24.  *  777 Downing St.        IMEXnet  89:483/202                             *
  25.  *  Kingston, Ont.         Internet f106.n249.z1.fidonet.org               *
  26.  *  Canada - K7M 5N3       BBS      (613) 389-8315 - HST/14.4K, 24hrs      *
  27.  *                                                                         *
  28.  ***************************************************************************/
  29.  
  30. #ifdef INITIALIZE_MSG
  31. #define extrn
  32. #define IS(x) =x
  33. #define LEN(x) x
  34. #else
  35. #define extrn extern
  36. #define IS(x)
  37. #define LEN(x)
  38. #endif
  39.  
  40. #include <setjmp.h>
  41.  
  42. extrn char *screen[LEN(MAX_LINES+1)];
  43. extrn int num_lines;
  44.  
  45. extrn struct _area area;    /* AREA.DAT entry for this area                */
  46.  
  47. extrn char echo_written_in[(MAX_AREAS/CHAR_BITS)+1];
  48.                             /* A bit field for all possible areas (1296    *
  49.                              * max.), which tells whether or not the user  *
  50.                              * entered an echo message in that area...     */
  51.  
  52. extrn int num_msg,          /* Number of messages in this area */
  53.           high_msg,         /* Highest message number in this area */
  54.           barricade_priv,   /* Priv. for this level via barricade */
  55.           fnames,           /* Number of filenames in filenames[]. */
  56.           zoneto,           /* The zone this message is to */
  57.           pointto,          /* The point this message is to */
  58.           last_msg,         /* The last msg. we read in this area */
  59.           msgeof,           /* If we're at the end of the current msg. */
  60.           max_lines,        /* Virtual maximum number of msg. lines */
  61.           *msgs,            /* Sorted array holding numbers of message in area */
  62.           usrwidth,         /* Effective screen width for editors */
  63.           item;             /* The current item we're on when entering
  64.                                 msg. to/from and attributes             */
  65.  
  66. extrn char areatag[LEN(30)],/* The short name (leaf directory) for this area */
  67.            *filenames[LEN(MAXEXPAND)], /* Array of UL/DL filenames! */
  68.            found_msg,
  69.            entry,           /* If we just entered a message area */
  70.            direction,       /* Direction in which to read msgs (next/prev) */
  71.            menuinc,         /* If the help level is ready to be tipped up one */
  72.            *msgbuf,         /* Current position in message-display buffer */
  73.            *msgend,         /* End of message-display buffer */
  74.            inc,             /* If we're going up/down in Get_Msg_Attr() */
  75.            orig_msgid[LEN(50)], /* MSGID of message we're replying to. */
  76.            netnode[LEN(26)];/* String version of destination addr. */
  77.  
  78. extrn char isareply;        /* If the current msg. is a reply to another */
  79.  
  80. extrn jmp_buf jumpto;       /* "Jump" location for MaxEd/BORED errors */
  81.  
  82. #undef extrn
  83. #undef IS
  84. #undef LEN
  85.  
  86.