aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-25 00:35:42 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-25 00:35:42 +0800
commitacf12a49d6be18001469b2ae7dcb0c136844a6d3 (patch)
tree7781bc32bb6017d1abab4e3742e50958966016de /camel
parente6cae5170ee9361392ee7d9835eb83855de12630 (diff)
downloadgsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.tar
gsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.tar.gz
gsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.tar.bz2
gsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.tar.lz
gsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.tar.xz
gsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.tar.zst
gsoc2013-evolution-acf12a49d6be18001469b2ae7dcb0c136844a6d3.zip
Make bucket->refcount 31 bits and bucket->used 1 bit instead of having
2003-02-24 Jeffrey Stedfast <fejj@ximian.com> * camel-iconv.c: Make bucket->refcount 31 bits and bucket->used 1 bit instead of having each use their own 32bit int. svn path=/trunk/; revision=20035
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-iconv.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 8922aa8a7c..9f86228ca3 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,7 +1,9 @@
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
- * camel-iconv.c (iconv_cache_bucket_expire): Use g_iconv_close()
- here, missed this before.
+ * camel-iconv.c: Make bucket->refcount 31 bits and bucket->used 1
+ bit instead of having each use their own 32bit int.
+ (iconv_cache_bucket_expire): Use g_iconv_close() here, missed this
+ before.
(camel_iconv): Might as well call g_iconv here even though it just
calls iconv directly.
diff --git a/camel/camel-iconv.c b/camel/camel-iconv.c
index de97052669..9bf614d148 100644
--- a/camel/camel-iconv.c
+++ b/camel/camel-iconv.c
@@ -41,8 +41,8 @@
struct _iconv_cache_bucket {
struct _iconv_cache_bucket *next;
struct _iconv_cache_bucket *prev;
- guint32 refcount;
- gboolean used;
+ guint32 refcount:31;
+ guint32 used:1;
iconv_t cd;
char *key;
};