… | |
… | |
48 | |
48 | |
49 | #include <uudeview.h> |
49 | #include <uudeview.h> |
50 | #include <uuint.h> |
50 | #include <uuint.h> |
51 | #include <uustring.h> |
51 | #include <uustring.h> |
52 | |
52 | |
53 | char * uustring_id = "$Id: uustring.c,v 1.2 2001/06/11 20:42:38 root Exp $"; |
53 | char * uustring_id = "$Id: uustring.c,v 1.2.2.5 2004/04/18 19:55:46 root Exp $"; |
54 | |
54 | |
55 | typedef struct { |
55 | typedef struct { |
56 | int code; |
56 | int code; |
57 | char * msg; |
57 | char * msg; |
58 | } stringmap; |
58 | } stringmap; |
… | |
… | |
84 | { S_PARM_CHECK, "Parameter check failed in %s" }, |
84 | { S_PARM_CHECK, "Parameter check failed in %s" }, |
85 | { S_SHORT_BINHEX, "BinHex encoded file %s ended prematurely (%ld bytes left)" }, |
85 | { S_SHORT_BINHEX, "BinHex encoded file %s ended prematurely (%ld bytes left)" }, |
86 | { S_DECODE_CANCEL, "Decode operation canceled" }, |
86 | { S_DECODE_CANCEL, "Decode operation canceled" }, |
87 | { S_ENCODE_CANCEL, "Encode operation canceled" }, |
87 | { S_ENCODE_CANCEL, "Encode operation canceled" }, |
88 | { S_SCAN_CANCEL, "Scanning canceled" }, |
88 | { S_SCAN_CANCEL, "Scanning canceled" }, |
|
|
89 | { S_SIZE_MISMATCH, "%s: Decoded size (%ld) does not match expected size (%ld)" }, |
|
|
90 | { S_PSIZE_MISMATCH, "%s part %d: Decoded size (%ld) does not match expected size (%ld)" }, |
|
|
91 | { S_CRC_MISMATCH, "CRC32 mismatch in %s. Decoded file probably corrupt." }, |
|
|
92 | { S_PCRC_MISMATCH, "PCRC32 mismatch in %s part %d. Decoded file probably corrupt." }, |
89 | |
93 | |
90 | /* informational messages */ |
94 | /* informational messages */ |
91 | { S_LOADED_PART, "Loaded from %s: '%s' (%s): %s part %d %s %s %s" }, |
95 | { S_LOADED_PART, "Loaded from %s: '%s' (%s): %s part %d %s %s %s" }, |
92 | { S_NO_DATA_FOUND, "No encoded data found in %s" }, |
96 | { S_NO_DATA_FOUND, "No encoded data found in %s" }, |
93 | { S_NO_BIN_FILE, "Oops, could not find decoded file?" }, |
97 | { S_NO_BIN_FILE, "Oops, could not find decoded file?" }, |
… | |
… | |
126 | |
130 | |
127 | /* |
131 | /* |
128 | * Names of encoding types |
132 | * Names of encoding types |
129 | */ |
133 | */ |
130 | |
134 | |
131 | char *codenames[7] = { |
135 | char *codenames[8] = { |
132 | "", "UUdata", "Base64", "XXdata", "Binhex", "Text", "Text" |
136 | "", "UUdata", "Base64", "XXdata", "Binhex", "Text", "Text", "yEnc" |
133 | }; |
137 | }; |
134 | |
138 | |
135 | /* |
139 | /* |
136 | * Message types |
140 | * Message types |
137 | */ |
141 | */ |