kwo pushed a commit to branch master.
commit 108a3a604243da6d4f92c02cf3148e3e1be16f73
Author: Kim Woelders <[email protected]>
Date: Sat Jun 29 16:09:59 2013 +0200
Save some bytes in various structs.
---
src/borders.h | 2 +-
src/buttons.c | 4 ++--
src/pager.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/borders.h b/src/borders.h
index 4dfd4b9..bdf3ad7 100644
--- a/src/borders.h
+++ b/src/borders.h
@@ -74,7 +74,7 @@ struct _ewinbit {
Win win;
int x, y, w, h;
int cx, cy, cw, ch;
- int state;
+ char state;
char expose;
char left;
ImageState *is;
diff --git a/src/buttons.c b/src/buttons.c
index 00b3398..a37b329 100644
--- a/src/buttons.c
+++ b/src/buttons.c
@@ -63,15 +63,15 @@ struct _button {
int flags;
char internal;
char default_show;
+ char state;
+ char left;
EObj *owner;
ButtonCbFunc *func;
- int state;
Window inside_win;
#if 0 /* Unused */
Window event_win;
#endif
- char left;
unsigned int ref_count;
};
diff --git a/src/pager.c b/src/pager.c
index 2029d05..da2c7b3 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -183,10 +183,10 @@ PagerScanCancel(Pager * p)
static int
PagerScanTimeout(void *data)
{
+ static const char offsets[8] = { 0, 4, 2, 6, 1, 5, 3, 7 };
Pager *p = (Pager *) data;
EWin *ewin;
int y, y2, phase, cx, cy, ww, hh, xx, yy;
- static int offsets[8] = { 0, 4, 2, 6, 1, 5, 3, 7 };
int pager_mode = PagersGetMode();
if (pager_mode != PAGER_MODE_SNAP)
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev