Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/etk
Dir : e17/libs/etk/src/engines/ecore_fb
Modified Files:
Etk_Engine_Ecore_Fb.h
Log Message:
Structures fields reorder to avoid holes and save memory.
Have all Etk_Bool inside structures to be a bitfield, reorder fields
to provide better packing.
Packaging was aided by pahole 1.0 on x86
(http://git.kernel.org/?p=linux/kernel/git/acme/pahole.git)
Tested with etk_test and edje_viewer, both still work.
PS: bugs may appear due Etk_Bool size change, values like 2 (10b) will
now be evaluated as false. That was already a bug, just being exposed
now, the fix is easy: use !! (double negative) before the value,
example: "visible = obj_ptr;" becomes "visible = !!obj_ptr;".
===================================================================
RCS file: /cvs/e/e17/libs/etk/src/engines/ecore_fb/Etk_Engine_Ecore_Fb.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- Etk_Engine_Ecore_Fb.h 12 Jan 2007 02:53:56 -0000 1.4
+++ Etk_Engine_Ecore_Fb.h 26 Sep 2007 04:58:03 -0000 1.5
@@ -11,12 +11,12 @@
Etk_Position border_position;
Etk_Size size;
Etk_Size min_size;
- Etk_Bool visible;
- Etk_Bool maximized;
-
+
char *title;
- Etk_Bool borderless;
Evas_Object *border;
+ Etk_Bool borderless:1;
+ Etk_Bool visible:1;
+ Etk_Bool maximized:1;
} Etk_Engine_Ecore_Fb_Window_Data;
#endif
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs