aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-06 05:24:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-06 05:24:53 +0800
commit5348f464f5846e1228dff1c511fe003b1f3fa1e1 (patch)
tree2eadbeae723c373d9e16f116224560a74e8914e4
parent1e54340d72e5aaeb88c120b275bb468198167ba4 (diff)
downloadgsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.tar
gsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.tar.gz
gsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.tar.bz2
gsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.tar.lz
gsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.tar.xz
gsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.tar.zst
gsoc2013-evolution-5348f464f5846e1228dff1c511fe003b1f3fa1e1.zip
Added prototype for uudecode_step
2000-07-05 Jeffrey Stedfast <fejj@helixcode.com> * 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
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-mime-utils.c4
-rw-r--r--camel/camel-mime-utils.h3
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 <fejj@helixcode.com>
+
+ * 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 <ettore@helixcode.com>
* 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 <notzed@helixcode.com>
+ * Jeffrey Stedfast <fejj@helixcode.com>
*
* 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 <notzed@helixcode.com>
+ * Jeffrey Stedfast <fejj@helixcode.com>
*
* 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);