ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/uustring.c
(Generate patch)

Comparing Convert-UUlib/uulib/uustring.c (file contents):
Revision 1.2.2.5 by root, Sun Apr 18 19:55:46 2004 UTC vs.
Revision 1.8 by root, Sat Sep 24 06:22:47 2022 UTC

29#include <os2.h> 29#include <os2.h>
30#endif 30#endif
31 31
32#include <stdio.h> 32#include <stdio.h>
33#include <ctype.h> 33#include <ctype.h>
34
35#ifdef STDC_HEADERS
36#include <stdlib.h> 34#include <stdlib.h>
37#include <string.h> 35#include <string.h>
38#endif 36
39#ifdef HAVE_MALLOC_H
40#include <malloc.h>
41#endif
42#ifdef HAVE_UNISTD_H 37#ifdef HAVE_UNISTD_H
43#include <unistd.h> 38#include <unistd.h>
44#endif
45#ifdef HAVE_MEMORY_H
46#include <memory.h>
47#endif 39#endif
48 40
49#include <uudeview.h> 41#include <uudeview.h>
50#include <uuint.h> 42#include <uuint.h>
51#include <uustring.h> 43#include <uustring.h>
52
53char * uustring_id = "$Id: uustring.c,v 1.2.2.5 2004/04/18 19:55:46 root Exp $";
54 44
55typedef struct { 45typedef struct {
56 int code; 46 int code;
57 char * msg; 47 char * msg;
58} stringmap; 48} stringmap;
99 { S_DATA_SUSPICIOUS, "Data looks suspicious. Decoded file might be corrupt." }, 89 { S_DATA_SUSPICIOUS, "Data looks suspicious. Decoded file might be corrupt." },
100 { S_NO_TEMP_NAME, "Could not get name for temporary file" }, 90 { S_NO_TEMP_NAME, "Could not get name for temporary file" },
101 { S_BINHEX_SIZES, "BinHex file: data/resource fork sizes %ld/%ld" }, 91 { S_BINHEX_SIZES, "BinHex file: data/resource fork sizes %ld/%ld" },
102 { S_BINHEX_BOTH, "BinHex file: both forks non-empty, decoding data fork" }, 92 { S_BINHEX_BOTH, "BinHex file: both forks non-empty, decoding data fork" },
103 { S_SMERGE_MERGED, "Parts of '%s' merged with parts of '%s' (%d)" }, 93 { S_SMERGE_MERGED, "Parts of '%s' merged with parts of '%s' (%d)" },
104 94
105 /* MIME-related messages */ 95 /* MIME-related messages */
106 { S_MIME_NO_BOUNDARY, "Multipart message without boundary ignored" }, 96 { S_MIME_NO_BOUNDARY, "Multipart message without boundary ignored" },
107 { S_MIME_B_NOT_FOUND, "Boundary expected on Multipart message but found EOF" }, 97 { S_MIME_B_NOT_FOUND, "Boundary expected on Multipart message but found EOF" },
108 { S_MIME_MULTI_DEPTH, "Multipart message nested too deep" }, 98 { S_MIME_MULTI_DEPTH, "Multipart message nested too deep" },
109 { S_MIME_PART_MULTI, "Handling partial multipart message as plain text" }, 99 { S_MIME_PART_MULTI, "Handling partial multipart message as plain text" },
159 if (ptr->code == codeno) 149 if (ptr->code == codeno)
160 return ptr->msg; 150 return ptr->msg;
161 ptr++; 151 ptr++;
162 } 152 }
163 153
164 UUMessage (uustring_id, __LINE__, UUMSG_ERROR, 154 UUMessage (UUMSG_ERROR, "Could not retrieve string no %d", codeno);
165 "Could not retrieve string no %d",
166 codeno);
167 155
168 return faileddef; 156 return faileddef;
169} 157}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines