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

Comparing Convert-UUlib/uulib/uunconc.c (file contents):
Revision 1.21 by root, Fri May 27 13:52:27 2011 UTC vs.
Revision 1.22 by root, Tue Feb 25 21:10:01 2020 UTC

53#include <uudeview.h> 53#include <uudeview.h>
54#include <uuint.h> 54#include <uuint.h>
55#include <fptools.h> 55#include <fptools.h>
56#include <uustring.h> 56#include <uustring.h>
57 57
58char * uunconc_id = "$Id: uunconc.c,v 1.21 2011/05/27 13:52:27 root Exp $"; 58char * uunconc_id = "$Id: uunconc.c,v 1.22 2020/02/25 21:10:01 root Exp $";
59 59
60/* for braindead systems */ 60/* for braindead systems */
61#ifndef SEEK_SET 61#ifndef SEEK_SET
62#ifdef L_BEGIN 62#ifdef L_BEGIN
63#define SEEK_SET L_BEGIN 63#define SEEK_SET L_BEGIN
298 298
299 if ((s == NULL) || (*s == '\0')) { 299 if ((s == NULL) || (*s == '\0')) {
300 return 0; /* bad string */ 300 return 0; /* bad string */
301 } 301 }
302 302
303 while (*s) { 303 if (encoding == YENC_ENCODED)
304 s++; 304 return YENC_ENCODED;
305 len++;
306 i++;
307 }
308 305
309 if (i == 0) 306 i = strlen (s);
310 return 0;
311 307
312 switch (encoding) { 308 switch (encoding) {
313 case UU_ENCODED: 309 case UU_ENCODED:
314 goto _t_UU; 310 goto _t_UU;
315 case XX_ENCODED: 311 case XX_ENCODED:
316 goto _t_XX; 312 goto _t_XX;
317 case B64ENCODED: 313 case B64ENCODED:
318 goto _t_B64; 314 goto _t_B64;
319 case BH_ENCODED: 315 case BH_ENCODED:
320 goto _t_Binhex; 316 goto _t_Binhex;
321 case YENC_ENCODED:
322 return YENC_ENCODED;
323 } 317 }
324 318
325 _t_Binhex: /* Binhex Test */ 319 _t_Binhex: /* Binhex Test */
326 len = i; s = ptr; 320 len = i; s = ptr;
327 321

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines