1 /*****************************************************************************/
2 /*                                                                           */
3 /*                 (C) Copyright 1992-1997  Alberto Pasquale                 */
4 /*                                                                           */
5 /*                   A L L   R I G H T S   R E S E R V E D                   */
6 /*                                                                           */
7 /*****************************************************************************/
8 /*                                                                           */
9 /* This source code is NOT in the public domain and it CANNOT be used or     */
10 /* distributed without written permission from the author.                   */
11 /*                                                                           */
12 /*****************************************************************************/
13 /*                                                                           */
14 /* How to contact the author:  Alberto Pasquale of 2:332/504@fidonet         */
15 /*                             Viale Verdi 106                               */
16 /*                             41100 Modena                                  */
17 /*                             Italy                                         */
18 /*                                                                           */
19 /*****************************************************************************/
20 
21 // CfgData.Cpp
22 
23 #ifdef __OS2__
24     #define INCL_DOS
25     #include <os2.h>
26 #endif
27 
28 #include <limits.h>
29 #include <bbsgenlb.hpp>
30 #include "data.hpp"
31 #include "misc.hpp"
32 #include "cfgdata.hpp"
33 
34 
35 char NullStr[] = "";        // zero-length string
36 
37 BOOL nocrcexit = FALSE;
38 BOOL ForceComp = FALSE;
39 BOOL IgnoreDat = FALSE;
40 
41 char *InputPath = NullStr,
42      *ArcPath = NullStr,
43      *DatFile = "fastlst.dat";
44 
45 byte ArcDate = _ArcDateCreation_;
46 
47 CS   CostNullPhone = { USHRT_MAX, 0 };
48 CS   CostVerbatimPhone = { 0, 0 };
49 CO   *co_head  = NULL;
50 DL   *dl_head  = NULL;
51 TD   *td_head  = NULL;
52 FD   *fd_head  = NULL;
53 
54 
55 BOOL killafter  = FALSE,
56      killsource = FALSE,
57      dash2comma = FALSE,
58      noreport   = FALSE,
59      V7BugFix   = FALSE,
60      BitType    = FALSE,
61      NoRedir    = FALSE;
62 
63 char *BeforeKillSource = NULL;
64 
65 OutncBlk *nocomp = NULL;   // Nocompile "output" block
66 OUTBLK   *outblk = NULL;   // head of out block list
67 
68 AH_ComprCfg *Compr = NULL;    // pointer to istance of class of Compress Configuration
69 
70 char  *MsgLogAreaPath = NULL,
71       *MsgRemAreaPath = NULL;
72 word  MsgLogAreaType  = MSGTYPE_SDM,
73       MsgRemAreaType  = MSGTYPE_SDM;
74 
75 ADR   MsgFromNode,
76       MsgToNode;
77 char  *MsgTo = "SysOp";
78 dword MsgAttr = 0;
79 uint  MsgSize = 7168;
80 
81 
ARCMETHOD(const AH_Archiver * a,char initial)82 ARCMETHOD::ARCMETHOD (const AH_Archiver *a, char initial)
83 {
84     archiver = a;
85     first = initial ? initial : a->ext ? *a->ext : 'a';
86     next = NULL;
87 }
88 
89