home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MAXMAILP.ZIP / GLOBALS.H < prev    next >
C/C++ Source or Header  |  1990-12-10  |  3KB  |  102 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 LastUse[14];
  23. GLOBAL char StatName[14];
  24. GLOBAL char TxtFile[14];
  25. GLOBAL char PrmFile[14];
  26. GLOBAL char ArcFile[14];
  27. GLOBAL char SumFile[14];
  28. GLOBAL char LogFile[65];
  29. GLOBAL char CfgFile[65];
  30. GLOBAL char MCfgFile[65];
  31. GLOBAL char MsgHdrFile[65];
  32. GLOBAL char temp[91];
  33. GLOBAL char temp1[91];
  34. GLOBAL char UserName[50];
  35. GLOBAL char NewHelpFil[65];
  36. GLOBAL char SignOff[81];
  37.  
  38. GLOBAL char hdrive[_MAX_DRIVE];
  39. GLOBAL char hdir[_MAX_DIR];
  40. GLOBAL char sdrive[_MAX_DRIVE];
  41. GLOBAL char sdir[_MAX_DIR];
  42.  
  43. GLOBAL char *month;
  44. GLOBAL char *day;
  45. GLOBAL char *tm;
  46.  
  47. GLOBAL char break_flag;
  48.  
  49. GLOBAL struct _usr       LastUser;
  50. GLOBAL struct user_cfg   USERCFG;
  51. GLOBAL struct m_pointers prm;
  52. GLOBAL struct _area      AREA;
  53.  
  54. GLOBAL struct msgupd_st  *MSGUPD_1;        /* Pointer to first linked item */
  55. GLOBAL struct msgupd_st  *MSGUPD_cur;    /* Pointer to current linked item */
  56. GLOBAL struct packer_st  *PACKER_1;        /* Pointer to first linked item */
  57. GLOBAL struct packer_st  *PACKER_cur;    /* Pointer to current linked item */
  58. GLOBAL struct proto_st   *PROTO_1;        /* Pointer to first linked item */
  59. GLOBAL struct proto_st   *PROTO_cur;    /* Pointer to current linked item */
  60.  
  61. GLOBAL int user_slen;        /* Length of USER.BBS structure */
  62. GLOBAL int user_num;        /* Index of user in USER.BBS */
  63. GLOBAL int totmsgs;        /* Total messages recorded */
  64. GLOBAL int first;        /* various first time flags */
  65. GLOBAL int UserCfgnum;        /* Index of user in config file */
  66. GLOBAL int UserClass;
  67. GLOBAL int errcode;
  68. GLOBAL int packer_del;
  69. GLOBAL int parmread;
  70. GLOBAL int astrlen;
  71. GLOBAL int totprotocols;
  72. GLOBAL int totpackers;
  73. GLOBAL int IsLocal;
  74. GLOBAL int LogMode;
  75. GLOBAL int msg_update;
  76. GLOBAL int ReDirect;
  77. GLOBAL int Task;
  78. GLOBAL int TimeAdjust;
  79. GLOBAL int ScanDone;
  80. GLOBAL int PackDone;
  81. GLOBAL int Hangup;
  82.  
  83. GLOBAL int **SkipAreas;
  84.  
  85. GLOBAL unsigned MaxScan;
  86. GLOBAL unsigned MaxMsgs;
  87.  
  88. GLOBAL clock_t startsecs;
  89.  
  90. GLOBAL unsigned int update;        /* Various update flags */
  91.  
  92. /* Global variables initialization */
  93.  
  94. #ifdef MAIN
  95.  
  96. first = -1;
  97. class = 0;
  98. ReDirect = FALSE;
  99.  
  100. #endif
  101.  
  102.