home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MXMS_160.LZH / GLOBALS.H < prev    next >
C/C++ Source or Header  |  1991-06-20  |  4KB  |  140 lines

  1.  /****************************************************************************/
  2. /*                                                                          */
  3. /*       Globals.h      Global variables for Maxmail                        */
  4. /*                      Version 1.0                                         */
  5. /*                                                                          */
  6. /****************************************************************************/
  7.  
  8.  
  9. #ifdef MAIN
  10. #define GLOBAL 
  11. #else 
  12. #define GLOBAL extern
  13. #endif
  14.  
  15. /* Global variables */
  16.  
  17. GLOBAL FILE *outfile;
  18. GLOBAL FILE *afile;
  19.  
  20. GLOBAL char *offsets;
  21.  
  22. GLOBAL char BBSphone[15];
  23. GLOBAL char BBSid[15];
  24. GLOBAL char QWKDir[9];
  25.  
  26. GLOBAL char LastUse[14];
  27. GLOBAL char StatName[14];
  28. GLOBAL char TxtFile[14];
  29. GLOBAL char PrmFile[14];
  30. GLOBAL char ArcFile[14];
  31. GLOBAL char SumFile[14];
  32. GLOBAL char BullFile[65];
  33. GLOBAL char LogFile[65];
  34. GLOBAL char CfgFile[65];
  35. GLOBAL char MCfgFile[65];
  36. GLOBAL char MsgHdrFile[65];
  37. GLOBAL char QWKWelcome[65];
  38. GLOBAL char QWKnews[65];
  39. GLOBAL char QWKbye[65];
  40. GLOBAL char NewFiles[65];
  41. GLOBAL char statline[81];
  42. GLOBAL char temp[91];
  43. GLOBAL char temp1[91];
  44. GLOBAL char UserName[50];
  45. GLOBAL char NewHelpFil[65];
  46. GLOBAL char HelpFile[65];
  47. GLOBAL char SignOff[81];
  48.  
  49. GLOBAL byte TextAttr[TOTALCOLORS];
  50.  
  51.  
  52. GLOBAL char hdrive[_MAX_DRIVE];
  53. GLOBAL char hdir[_MAX_DIR];
  54. GLOBAL char sdrive[_MAX_DRIVE];
  55. GLOBAL char sdir[_MAX_DIR];
  56. GLOBAL char tdir[_MAX_DIR];
  57.  
  58. GLOBAL char *month;
  59. GLOBAL char *day;
  60. GLOBAL char *tm;
  61.  
  62. GLOBAL char break_flag;
  63.  
  64. GLOBAL struct _usr       LastUser;
  65. GLOBAL struct user_cfg   USERCFG;
  66. GLOBAL struct m_pointers prm;
  67. GLOBAL struct _area      AREA;
  68.  
  69. GLOBAL struct msgupd_st  *MSGUPD_1;        /* Pointer to first linked item */
  70. GLOBAL struct msgupd_st  *MSGUPD_cur;    /* Pointer to current linked item */
  71. GLOBAL struct packer_st  *PACKER_1;        /* Pointer to first linked item */
  72. GLOBAL struct packer_st  *PACKER_cur;    /* Pointer to current linked item */
  73. GLOBAL struct proto_st   *PROTO_1;        /* Pointer to first linked item */
  74. GLOBAL struct proto_st   *PROTO_cur;    /* Pointer to current linked item */
  75. GLOBAL struct repupl_st  *REPUPL_1;     /* Pointer to first linked item */
  76. GLOBAL struct repupl_st  *REPUPL_cur;     /* Pointer to current linked item */
  77.  
  78. GLOBAL struct reparc_st  *ZIPREP;
  79. GLOBAL struct reparc_st  *LHAREP;
  80. GLOBAL struct reparc_st  *ARCREP;
  81.  
  82. GLOBAL int user_slen;        /* Length of USER.BBS structure */
  83. GLOBAL int user_num;        /* Index of user in USER.BBS */
  84. GLOBAL int totmsgs;        /* Total messages recorded */
  85. GLOBAL int first;        /* various first time flags */
  86. GLOBAL int UserCfgnum;        /* Index of user in config file */
  87. GLOBAL int UserClass;
  88. GLOBAL int errcode;
  89. GLOBAL int packer_del;
  90. GLOBAL int parmread;
  91. GLOBAL int astrlen;
  92. GLOBAL int totprotocols;
  93. GLOBAL int totpackers;
  94. GLOBAL int totuplreps;
  95. GLOBAL int totmsgareas;
  96. GLOBAL int IsLocal;
  97. GLOBAL int LogMode;
  98. GLOBAL int msg_update;
  99. GLOBAL int ReDirect;
  100. GLOBAL int Task;
  101. GLOBAL int TimeAdjust;
  102. GLOBAL int ScanDone;
  103. GLOBAL int PackDone;
  104. GLOBAL int Hangup;
  105. GLOBAL int SwapMode;
  106. GLOBAL int ExtendOk;
  107. GLOBAL int ChatOk;
  108. GLOBAL int YellOn;
  109. GLOBAL int MaxDaily;
  110. GLOBAL int SysopMode;
  111. GLOBAL int EmptyRecs;
  112. GLOBAL int StripTags;
  113. GLOBAL int newuser;
  114. GLOBAL int HangupMode;
  115. GLOBAL int HaveUpl;
  116. GLOBAL int WatchDog;
  117. GLOBAL int Exitcode;
  118.  
  119. GLOBAL int **SkipAreas;
  120. GLOBAL int SkipCount;
  121.  
  122. GLOBAL int **ForceAreas;
  123. GLOBAL int ForceCount;
  124.  
  125. GLOBAL unsigned MaxMsgs;
  126.  
  127. GLOBAL clock_t startsecs;
  128.  
  129.  
  130. /* Global variables initialization */
  131.  
  132. #ifdef MAIN
  133.  
  134. first = -1;
  135. class = 0;
  136. ReDirect = FALSE;
  137.  
  138. #endif
  139.  
  140.