[Xfce4-commits] <libxfce4util:master> Strip some size from internal api.
Nick Schermer
noreply at xfce.org
Thu Jan 26 21:44:01 CET 2012
Updating branch refs/heads/master
to ca328c940d0db5570f4973549df9c392a091bdb5 (commit)
from cf2ad3a78c183363c6abb6fe9d4affa2670677ee (commit)
commit ca328c940d0db5570f4973549df9c392a091bdb5
Author: Nick Schermer <nick at xfce.org>
Date: Thu Jan 26 21:22:16 2012 +0100
Strip some size from internal api.
Make the structure smaller. Drops from 216 to 176 bytes.
libxfce4util/xfce-rc-private.h | 4 ----
libxfce4util/xfce-rc-simple.c | 6 +++---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/libxfce4util/xfce-rc-private.h b/libxfce4util/xfce-rc-private.h
index e654eb6..ab5f61a 100644
--- a/libxfce4util/xfce-rc-private.h
+++ b/libxfce4util/xfce-rc-private.h
@@ -46,10 +46,6 @@ struct _XfceRc
gboolean translated);
/* write_entry == NULL means readonly */
void (*write_entry) (XfceRc *rc, const gchar *key, const gchar *value);
- void (*reserved1) (void);
- void (*reserved2) (void);
- void (*reserved3) (void);
- void (*reserved4) (void);
gchar *locale;
};
diff --git a/libxfce4util/xfce-rc-simple.c b/libxfce4util/xfce-rc-simple.c
index dd6050b..af98987 100644
--- a/libxfce4util/xfce-rc-simple.c
+++ b/libxfce4util/xfce-rc-simple.c
@@ -86,7 +86,6 @@ struct _XfceRcSimple
{
XfceRc __parent__;
- gboolean shared_chunks;
GStringChunk *string_chunk;
gchar *filename;
@@ -95,8 +94,9 @@ struct _XfceRcSimple
Group *glast;
Group *group;
- gboolean dirty;
- gboolean readonly;
+ guint shared_chunks : 1;
+ guint dirty : 1;
+ guint readonly : 1;
};
struct _Entry
More information about the Xfce4-commits
mailing list