summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-12-02 11:39:57 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-12-02 12:27:37 +0100
commit2ce2a6514899e1c47c4a58f2c5305d62cddf1a7c (patch)
tree69a1e7d08d9752063ae1df05c122fd8d05d52503
parenta2e90e522bccdc3d724306f6a7914e582d7d1af1 (diff)
downloadefl-2ce2a6514899e1c47c4a58f2c5305d62cddf1a7c.tar.gz
eo: adjust generation count
raster suggested a few optimizations
-rw-r--r--src/lib/eo/eo_base_class.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index fe8cd78457..3a85983a43 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -19,7 +19,7 @@ typedef struct {
EINA_INLIST;
unsigned int idx;
unsigned int inserted_before;
- unsigned char generation;
+ unsigned short generation;
} Efl_Event_Callback_Frame;
typedef struct
@@ -42,9 +42,8 @@ typedef struct
Eina_Inlist *current;
Eo_Callback_Description **callbacks;
- unsigned int callbacks_count;
-
Eina_Inlist *event_frame;
+ unsigned int callbacks_count;
unsigned short event_freeze_count;
#ifdef EFL_EVENT_SPECIAL_SKIP
@@ -921,7 +920,7 @@ struct _Eo_Callback_Description
void *func_data;
Efl_Callback_Priority priority;
- unsigned char generation;
+ unsigned short generation;
Eina_Bool delete_me : 1;
Eina_Bool func_array : 1;