From 5348f464f5846e1228dff1c511fe003b1f3fa1e1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 5 Jul 2000 21:24:53 +0000 Subject: Added prototype for uudecode_step 2000-07-05 Jeffrey Stedfast * camel-mime-utils.h: Added prototype for uudecode_step * camel-mime-utils.c (uudecode_step): Cleaned up some junk that should have been cleaned up when debugging printf's were taken out. svn path=/trunk/; revision=3899 --- camel/ChangeLog | 7 +++++++ camel/camel-mime-utils.c | 4 +--- camel/camel-mime-utils.h | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 8d41999209..bf6eaf7bdf 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2000-07-05 Jeffrey Stedfast + + * camel-mime-utils.h: Added prototype for uudecode_step + + * camel-mime-utils.c (uudecode_step): Cleaned up some junk that + should have been cleaned up when debugging printf's were taken out. + 2000-07-05 Ettore Perazzoli * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync): diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index e30c24b87d..f2349b7e92 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2,6 +2,7 @@ * Copyright (C) 2000 Helix Code Inc. * * Authors: Michael Zucchi + * Jeffrey Stedfast * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License @@ -481,11 +482,8 @@ uudecode_step (unsigned char *in, int len, unsigned char *out, int *state, guint *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2; *outptr++ = CAMEL_UUDECODE_CHAR (b2) << 6 | CAMEL_UUDECODE_CHAR (b3); } else { - int j = 0; - if (*uulen >= 1) { *outptr++ = CAMEL_UUDECODE_CHAR (b0) << 2 | CAMEL_UUDECODE_CHAR (b1) >> 4; - j++; } if (*uulen >= 2) { *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2; diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h index 5f715243d0..8f00eb0b9d 100644 --- a/camel/camel-mime-utils.h +++ b/camel/camel-mime-utils.h @@ -2,6 +2,7 @@ * Copyright (C) 2000 Helix Code Inc. * * Authors: Michael Zucchi + * Jeffrey Stedfast * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License @@ -158,6 +159,8 @@ int base64_decode_step(unsigned char *in, int len, unsigned char *out, int *stat int base64_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save); int base64_encode_close(unsigned char *in, int inlen, unsigned char *out, int *state, int *save); +int uudecode_step (unsigned char *in, int len, unsigned char *out, int *state, guint32 *save, char *uulen); + int quoted_decode_step(unsigned char *in, int len, unsigned char *out, int *savestate, int *saveme); int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save); -- cgit v1.2.3