Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | |
2 | /* |
||
3 | |||
4 | Copyright (c) 1990-2007 Info-ZIP. All rights reserved. |
||
5 | |||
6 | See the accompanying file LICENSE, version 2007-Mar-4 or later |
||
7 | (the contents of which are also included in zip.h) for terms of use. |
||
8 | If, for some reason, all these files are missing, the Info-ZIP license |
||
9 | also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html |
||
10 | |||
11 | parts Copyright (C) 1997 Mike White, Eric W. Engler |
||
12 | ************************************************************************ |
||
13 | Copyright (C) 2009, 2010 by Russell J. Peters, Roger Aelbrecht |
||
14 | |||
15 | This file is part of TZipMaster Version 1.9. |
||
16 | |||
17 | TZipMaster is free software: you can redistribute it and/or modify |
||
18 | it under the terms of the GNU Lesser General Public License as published by |
||
19 | the Free Software Foundation, either version 3 of the License, or |
||
20 | (at your option) any later version. |
||
21 | |||
22 | TZipMaster is distributed in the hope that it will be useful, |
||
23 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
24 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
25 | GNU Lesser General Public License for more details. |
||
26 | |||
27 | You should have received a copy of the GNU Lesser General Public License |
||
28 | along with TZipMaster. If not, see <http://www.gnu.org/licenses/>. |
||
29 | |||
30 | contact: problems@delphizip.org (include ZipMaster in the subject). |
||
31 | updates: http://www.delphizip.org |
||
32 | DelphiZip maillist subscribe at http://www.freelists.org/list/delphizip |
||
33 | ************************************************************************/ |
||
34 | |||
35 | #ifndef __UNZERR |
||
36 | #define __UNZERR |
||
37 | /* |
||
38 | #ifdef NO_CONSTS |
||
39 | const char CentSigMsg[] = |
||
40 | "error: expected central file header signature not found (file #%u).\n"; |
||
41 | const char EndSigMsg[] = |
||
42 | "\nnote: didn't find end-of-central-dir signature at end of central dir.\n"; |
||
43 | const char SeekMsg[] = |
||
44 | "error [%s]: attempt to seek before beginning of zipfile\n%s"; |
||
45 | const char FilenameNotMatched[] = "caution: filename not matched: %s\n"; |
||
46 | const char ExclFilenameNotMatched[] = |
||
47 | "caution: excluded filename not matched: %s\n"; |
||
48 | #endif |
||
49 | */ |
||
50 | /* |
||
51 | * UEN (Unzip Error New) is composed as folows: |
||
52 | * a unsigned long (32 bits) Byte4 Byte3 Byte2 Byte1 |
||
53 | * Byte 1 Signed; (Old <= dll version 1.503) ZE_ error class (-5 to 18) (-2,17 not used) |
||
54 | * Error return values. The values 0..4 and 12..18 follow the conventions |
||
55 | * of PKZIP. The values 4..10 are all assigned to "insufficient memory" |
||
56 | * by PKZIP, so the codes 5, 9 and 10 are used here for other purposes. |
||
57 | * also 6, 7, 8 and 17 are not used yet. |
||
58 | * Return codes of password fetches (negative = user abort; positive = error) |
||
59 | * UENPW_ERROR was 5 but had to make it -5 since UENLOGIC uses 5 |
||
60 | * UENPW_CANCEL was -1 changed to -3 .. -1 inuse |
||
61 | * UENPW_CANCELALL was -2 changed to -4 |
||
62 | * Byte 2 Sequence number in the UEN Error class: 1..255 |
||
63 | * Byte 3 Error string number in errors[] array or 0x7F if present in global pG->eremsg. |
||
64 | * Byte 4 Not used yet. |
||
65 | */ |
||
66 | |||
67 | // #define UEN_OK 0 /* Success */ |
||
68 | |||
69 | //#define UEN_EOF 2 /* Unexpected end of zip file */ |
||
70 | //#define UEN_EOF01 0x130102 /* in Process.c */ |
||
71 | //#define UEN_EOF02 0x140202 /* in Extract.c */ |
||
72 | #if 0 |
||
73 | // #define UEN_FORM 3 /* Zip file structure error */ |
||
74 | // #define UEN_FORM01 0x030103 /* in ZipFile.c readzipfile() */ |
||
75 | // #define UEN_FORM02 0x030203 /* in ZipFile.c readzipfile() */ |
||
76 | // #define UEN_FORM03 0x030303 /* in ZipFile.c readzipfile() */ |
||
77 | // #define UEN_FORM04 0x030403 /* in ZipFile.c readzipfile() */ |
||
78 | // #define UEN_FORM05 0x030503 /* in ZipFile.c readzipfile() */ |
||
79 | // #define UEN_FORM06 0x030603 /* in ZipFile.c readzipfile() */ |
||
80 | // #define UEN_FORM07 0x030703 /* in ZipFile.c readzipfile() */ |
||
81 | // #define UEN_FORM08 0x030803 /* in ZipFile.c readzipfile() */ |
||
82 | // #define UEN_FORM09 0x030903 /* in ZipFile.c readzipfile() */ |
||
83 | // #define UEN_FORM10 0x030A03 /* in ZipFile.c readzipfile() */ |
||
84 | // #define UEN_FORM11 0x030B03 /* in ZipFile.c readzipfile() */ |
||
85 | // #define UEN_FORM12 0x030C03 /* in ZipFile.c readzipfile() */ |
||
86 | // #define UEN_FORM13 0x030D03 /* in ZipFile.c readzipfile() */ |
||
87 | // #define UEN_FORM14 0x030E03 /* in ZipFile.c readzipfile() */ |
||
88 | // #define UEN_FORM15 0x030F03 /* in ZipFile.c readzipfile() */ |
||
89 | // #define UEN_FORM16 0x031003 /* in ZipFile.c readzipfile() */ |
||
90 | // #define UEN_FORM17 0x031103 /* in ZipFile.c readzipfile() */ |
||
91 | // #define UEN_FORM18 0x081203 /* in Process.c */ |
||
92 | #endif |
||
93 | //#define UEN_MEM 4 /* Out of memory */ |
||
94 | //#define UEN_MEM01 0x040104 /* in process.c ProcessZipfiles() */ |
||
95 | //#define UEN_MEM02 0x040204 /* in deflate.c lm_init() */ |
||
96 | //#define UEN_MEM03 0x040304 /* in process.c ProcessZipfiles() */ |
||
97 | |||
98 | //#define UEN_MISC 6 /* RCV defined/changed errors */ |
||
99 | //#define UEN_MISC01 0x060106 /* in Process.c */ |
||
100 | //#define UEN_MISC02 0x070206 /* in Process.c */ |
||
101 | //#define UEN_MISC03 0x7F0364 /* in Extract.c */ |
||
102 | //#define UEN_MISC04 0x7F0464 /* in Extract.c */ |
||
103 | //#define UEN_MISC05 0x7F0514 /* in Extract.c */ |
||
104 | |||
105 | // #define UEN_TEST 8 /* zip test (-T) failed or out of memory */ |
||
106 | // #define UEN_TEST01 0x7F0108 /* in Process.c */ |
||
107 | // #define UEN_TEST02 0x7F0208 /* in Process.c */ |
||
108 | |||
109 | // #define UEN_ABORT 9 /* user interrupt or termination */ |
||
110 | // #define UEN_ABORT01 0x090109 /* in Tress.c flush_block() */ |
||
111 | // #define UEN_ABORT02 0x090209 /* in Extract.c */ |
||
112 | // #define UEN_ABORT03 0x090309 /* in Inflate.c, Extract.c */ |
||
113 | // #define UEN_ABORT04 0x090409 /* in Extract.c */ |
||
114 | |||
115 | // #define UEN_READ 11 /* Error reading a file */ |
||
116 | // #define UEN_READ01 0x0B010B /* in FileIO.c read failed, probably bad media */ |
||
117 | |||
118 | // #define UEN_NAME 13 /* Missing zip file */ |
||
119 | // #define UEN_NAME01 0x0D010D /* in FileIO.c */ |
||
120 | |||
121 | // #define UEN_WRITE 14 /* Error writing to a file */ |
||
122 | // #define UEN_WRITE01 0x0E010E /* Write error in flush_outbuf */ |
||
123 | |||
124 | // #define UEN_PARMS 16 /* Bad command line */ |
||
125 | // #define UEN_PARMS01 0x100110 /* no zip filename received, was -1 */ |
||
126 | // #define UEN_PARMS02 0x100210 /* struct size mismatch, was -2 */ |
||
127 | |||
128 | #endif |
||
129 |