… | |
… | |
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 | |
84 | char * uulib_id = "$Id: uulib.c,v 1.8 2002/04/05 21:56:57 root Exp $"; |
84 | char * 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 |
87 | BOOL _export WINAPI |
87 | BOOL _export WINAPI |
88 | DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, |
88 | DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, |
89 | LPVOID lpCmdLine) |
89 | LPVOID lpCmdLine) |
… | |
… | |
143 | int uu_handletext = 0; /* do we want text/plain messages */ |
143 | int uu_handletext = 0; /* do we want text/plain messages */ |
144 | int uu_usepreamble = 0; /* do we want Mime preambles/epilogues */ |
144 | int uu_usepreamble = 0; /* do we want Mime preambles/epilogues */ |
145 | int uu_tinyb64 = 0; /* detect short B64 outside of MIME */ |
145 | int uu_tinyb64 = 0; /* detect short B64 outside of MIME */ |
146 | int uu_remove_input = 0; /* remove input files after decoding */ |
146 | int uu_remove_input = 0; /* remove input files after decoding */ |
147 | int uu_more_mime = 0; /* strictly adhere to MIME headers */ |
147 | int uu_more_mime = 0; /* strictly adhere to MIME headers */ |
|
|
148 | int uu_dotdot = 0; /* dot-unescaping has not yet been done */ |
148 | |
149 | |
149 | headercount hlcount = { |
150 | headercount 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; |