pidgin: 950bb2d6: I think we can save some memory by makin...

qulogic at pidgin.im qulogic at pidgin.im
Thu Dec 2 01:35:48 EST 2010


----------------------------------------------------------------------
Revision: 950bb2d6cc372cd809bb44f57c4c4c00e35b7495
Parent:   9d391cf5dbda8fdfd4f3427c13b679720fbccffa
Author:   qulogic at pidgin.im
Date:     12/02/10 00:21:50
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/950bb2d6cc372cd809bb44f57c4c4c00e35b7495

Changelog: 

I think we can save some memory by making these booleans into a single
bitfield variable.

Changes against parent 9d391cf5dbda8fdfd4f3427c13b679720fbccffa

  patched  libpurple/protocols/msn/session.h

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/session.h	c16860de8fd7e1b5013cfd543844df0dbaeef31b
+++ libpurple/protocols/msn/session.h	8bcb98cf4a2c727e1094c4a0062ac59dabef3719
@@ -79,12 +79,12 @@ struct _MsnSession
 
 	MsnLoginStep login_step; /**< The current step in the login process. */
 
-	gboolean connected;
-	gboolean logged_in; /**< A temporal flag to ignore local buddy list adds. */
+	gboolean connected:1;
+	gboolean logged_in:1; /**< A temporal flag to ignore local buddy list adds. */
+	gboolean destroying:1; /**< A flag that states if the session is being destroyed. */
+	gboolean http_method:1;
 	int      adl_fqy; /**< A count of ADL/FQY so status is only changed once. */
 	guint    login_timeout; /**< Timeout to force status change if ADL/FQY fail. */
-	gboolean destroying; /**< A flag that states if the session is being destroyed. */
-	gboolean http_method;
 
 	MsnNotification *notification;
 	MsnNexus        *nexus;


More information about the Commits mailing list