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

Comparing Convert-UUlib/uulib/uulib.c (file contents):
Revision 1.8 by root, Fri Apr 5 21:56:57 2002 UTC vs.
Revision 1.9 by root, Sat Apr 6 01:53:30 2002 UTC

79#include <uudeview.h> 79#include <uudeview.h>
80#include <uuint.h> 80#include <uuint.h>
81#include <fptools.h> 81#include <fptools.h>
82#include <uustring.h> 82#include <uustring.h>
83 83
84char * uulib_id = "$Id: uulib.c,v 1.8 2002/04/05 21:56:57 root Exp $"; 84char * uulib_id = "$Id: uulib.c,v 1.9 2002/04/06 01:53:30 root Exp $";
85 85
86#ifdef SYSTEM_WINDLL 86#ifdef SYSTEM_WINDLL
87BOOL _export WINAPI 87BOOL _export WINAPI
88DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, 88DllEntryPoint (HINSTANCE hInstance, DWORD seginfo,
89 LPVOID lpCmdLine) 89 LPVOID lpCmdLine)
143int uu_handletext = 0; /* do we want text/plain messages */ 143int uu_handletext = 0; /* do we want text/plain messages */
144int uu_usepreamble = 0; /* do we want Mime preambles/epilogues */ 144int uu_usepreamble = 0; /* do we want Mime preambles/epilogues */
145int uu_tinyb64 = 0; /* detect short B64 outside of MIME */ 145int uu_tinyb64 = 0; /* detect short B64 outside of MIME */
146int uu_remove_input = 0; /* remove input files after decoding */ 146int uu_remove_input = 0; /* remove input files after decoding */
147int uu_more_mime = 0; /* strictly adhere to MIME headers */ 147int uu_more_mime = 0; /* strictly adhere to MIME headers */
148int uu_dotdot = 0; /* dot-unescaping has not yet been done */
148 149
149headercount hlcount = { 150headercount hlcount = {
150 3, /* restarting after a MIME body */ 151 3, /* restarting after a MIME body */
151 2, /* after useful data in freestyle mode */ 152 2, /* after useful data in freestyle mode */
152 1 /* after useful data and an empty line */ 153 1 /* after useful data and an empty line */
497 break; 498 break;
498 case UUOPT_MOREMIME: 499 case UUOPT_MOREMIME:
499 if (ivalue) *ivalue = uu_more_mime; 500 if (ivalue) *ivalue = uu_more_mime;
500 result = uu_more_mime; 501 result = uu_more_mime;
501 break; 502 break;
503 case UUOPT_DOTDOT:
504 if (ivalue) *ivalue = uu_dotdot;
505 result = uu_dotdot;
506 break;
502 default: 507 default:
503 return -1; 508 return -1;
504 } 509 }
505 return result; 510 return result;
506} 511}
556 case UUOPT_REMOVE: 561 case UUOPT_REMOVE:
557 uu_remove_input = ivalue; 562 uu_remove_input = ivalue;
558 break; 563 break;
559 case UUOPT_MOREMIME: 564 case UUOPT_MOREMIME:
560 uu_more_mime = ivalue; 565 uu_more_mime = ivalue;
566 break;
567 case UUOPT_DOTDOT:
568 uu_dotdot = ivalue;
561 break; 569 break;
562 default: 570 default:
563 return UURET_ILLVAL; 571 return UURET_ILLVAL;
564 } 572 }
565 return UURET_OK; 573 return UURET_OK;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines