123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #define VMS_MSG_IDENT "V3.0-000"
- #define ZE_S_WARNING 0x00
- #define ZE_S_SUCCESS 0x01
- #define ZE_S_ERROR 0x02
- #define ZE_S_INFO 0x03
- #define ZE_S_SEVERE 0x04
- #define ZE_S_UNUSED 0x07
- #define ZE_S_PERR 0x10
-
- #define ZE_MISS -1
- #define ZE_OK 0
- #define ZE_EOF 2
- #define ZE_FORM 3
- #define ZE_MEM 4
- #define ZE_LOGIC 5
- #define ZE_BIG 6
- #define ZE_NOTE 7
- #define ZE_TEST 8
- #define ZE_ABORT 9
- #define ZE_TEMP 10
- #define ZE_READ 11
- #define ZE_NONE 12
- #define ZE_NAME 13
- #define ZE_WRITE 14
- #define ZE_CREAT 15
- #define ZE_PARMS 16
- #define ZE_OPEN 18
- #define ZE_COMPERR 19
- #define ZE_ZIP64 20
- #define ZE_MAXERR 20
- #ifdef GLOBALS
- struct
- {
- char *name;
- char *string;
- int severity;
- } ziperrors[ZE_MAXERR + 1] = {
- { "OK", "Normal successful completion", ZE_S_SUCCESS },
- { "", "", ZE_S_UNUSED },
- { "EOF", "Unexpected end of zip file", ZE_S_SEVERE },
- { "FORM", "Zip file structure invalid", ZE_S_ERROR },
- { "MEM", "Out of memory", ZE_S_SEVERE },
- { "LOGIC", "Internal logic error", ZE_S_SEVERE },
- { "BIG", "Entry too big to split, read, or write",
- ZE_S_ERROR },
- { "NOTE", "Invalid comment format", ZE_S_ERROR },
- { "TEST", "Zip file invalid, could not spawn unzip, or wrong unzip",
- ZE_S_SEVERE },
- { "ABORT", "Interrupted", ZE_S_ERROR },
- { "TEMP", "Temporary file failure", ZE_S_SEVERE | ZE_S_PERR },
- { "READ", "Input file read failure", ZE_S_SEVERE | ZE_S_PERR },
- { "NONE", "Nothing to do!", ZE_S_WARNING },
- { "NAME", "Missing or empty zip file", ZE_S_ERROR },
- { "WRITE", "Output file write failure", ZE_S_SEVERE | ZE_S_PERR },
- { "CREAT", "Could not create output file", ZE_S_SEVERE | ZE_S_PERR },
- { "PARMS", "Invalid command arguments", ZE_S_ERROR },
- { "", "", ZE_S_UNUSED },
- { "OPEN", "File not found or no read permission",
- ZE_S_ERROR | ZE_S_PERR },
- { "COMPERR", "Not supported", ZE_S_SEVERE },
- { "ZIP64", "Attempt to read unsupported Zip64 archive",
- ZE_S_SEVERE }
- # ifdef AZTEC_C
- ,
- # endif
- };
- #else
- extern struct
- {
- char *name;
- char *string;
- int severity;
- } ziperrors[ZE_MAXERR + 1];
- #endif
- #define PERR(e) (ziperrors[e].severity & ZE_S_PERR)
- #define ZIPERRORS(e) ziperrors[e].string
|