Subversion Repositories autosfx

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
#include "stdafx.h"
2
#pragma hdrstop
3
/*
4
 
5
  Copyright (c) 1990-2007 Info-ZIP.  All rights reserved.
6
 
7
  See the accompanying file LICENSE, version 2007-Mar-4 or later
8
  (the contents of which are also included in zip.h) for terms of use.
9
  If, for some reason, all these files are missing, the Info-ZIP license
10
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
11
 
12
  parts Copyright (C) 1997 Mike White, Eric W. Engler
13
************************************************************************
14
 Copyright (C) 2009, 2010  by Russell J. Peters, Roger Aelbrecht
15
 
16
   This file is part of TZipMaster Version 1.9.
17
 
18
    TZipMaster is free software: you can redistribute it and/or modify
19
    it under the terms of the GNU Lesser General Public License as published by
20
    the Free Software Foundation, either version 3 of the License, or
21
    (at your option) any later version.
22
 
23
    TZipMaster is distributed in the hope that it will be useful,
24
    but WITHOUT ANY WARRANTY; without even the implied warranty of
25
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
    GNU Lesser General Public License for more details.
27
 
28
    You should have received a copy of the GNU Lesser General Public License
29
    along with TZipMaster.  If not, see <http://www.gnu.org/licenses/>.
30
 
31
    contact: problems@delphizip.org (include ZipMaster in the subject).
32
    updates: http://www.delphizip.org
33
    DelphiZip maillist subscribe at http://www.freelists.org/list/delphizip
34
************************************************************************/
35
#include "UnzInf.h"
36
//---------------------------------------------------------------------------
37
//#pragma package(smart_init)
38
 
39
#include "UnzSup.h"
40
#include "dz_errs.h"
41
 
42
#undef _DZ_FILE_
43
#define _DZ_FILE_ DZ_UNZINF_CPP
44
//---------------------------------------------------------------------------
45
//#pragma package(smart_init)
46
 
47
 
48
/* And'ing with mask_bits[n] masks the lower n bits */
49
ush const mask_bits[]  =
50
  {
51
    0x0000,
52
    0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff,
53
    0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff
54
  };
55
 
56
UnzInf::UnzInf(const DllCommands *C): UnzSup(C)
57
{
58
//#ifdef CRYPT
59
  fP_flag = 0;
60
//#endif
61
  fnopwd = 0;
62
  fkey = 0;
63
//  fpwdarg = 0;
64
  fhufts = 0;
65
 
66
  ffixed_tl = 0;
67
  ffixed_td = 0;
68
  ffixed_bl = 0;
69
  ffixed_bd = 0;
70
  ffixed_tl64 = 0;
71
  ffixed_td64 = 0;
72
  ffixed_bl64 = 0;
73
  ffixed_bd64 = 0;
74
  ffixed_tl32 = 0;
75
  ffixed_td32 = 0;
76
  ffixed_bl32 = 0;
77
  ffixed_bd32 = 0;
78
  fcplens = 0;
79
  fcplext = 0;
80
  fcpdext = 0;
81
  fwp = 0;
82
  fbb = 0;
83
  fbk = 0;
84
//  flrec;
85
  fPwdReqCount = 3;
86
  fnewzip = 0;
87
}
88
 
89
UnzInf::~UnzInf(void)
90
{
91
//  if (fkey && fkey != fpwdarg)
92
//    StrFree(fkey);
93
//  StrFree(fpwdarg);
94
  inflate_free();
95
}
96