RESOLVED FIXED Bug 130511
Move all EFL typedefs into EflTypedefs.h.
https://bugs.webkit.org/show_bug.cgi?id=130511
Summary Move all EFL typedefs into EflTypedefs.h.
Hyowon Kim
Reported 2014-03-20 08:12:00 PDT
I think we don't have to spread EFL typedefs in every headers. We will get a lot more work if EFL changes them, and it looks not good. So we need to clean up and add a dedicated file to place all EFL typedefs.
Attachments
Patch (17.67 KB, patch)
2014-03-21 21:32 PDT, Hyowon Kim
no flags
Patch (17.54 KB, patch)
2014-03-22 06:37 PDT, Hyowon Kim
no flags
Patch (19.47 KB, patch)
2014-03-22 21:30 PDT, Hyowon Kim
no flags
Hyowon Kim
Comment 1 2014-03-21 21:32:39 PDT
Gyuyoung Kim
Comment 2 2014-03-21 21:43:17 PDT
Comment on attachment 227533 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227533&action=review LGTM, nice ! > Source/JavaScriptCore/ChangeLog:3 > + Clean up EFL typedefs. It looks this bug title isn't correct for this patch. Patch description looks more correct for title. "Move all EFL typedefs into GTypedefs.h"
Hyowon Kim
Comment 3 2014-03-22 06:37:42 PDT
Ryuan Choi
Comment 4 2014-03-22 15:43:20 PDT
Comment on attachment 227549 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227549&action=review > Source/WTF/wtf/gobject/GTypedefs.h:129 > +#if PLATFORM(EFL) > +typedef unsigned char Eina_Bool; > +typedef struct _Evas_Point Evas_Point; > +typedef struct _Evas_GL Evas_GL; > +typedef struct _Evas_GL_Context Evas_GL_Context; > +typedef struct _Evas_GL_Surface Evas_GL_Surface; > +typedef struct _Ecore_Evas Ecore_Evas; > +typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler; > +typedef struct _Eina_List Eina_List; > +typedef struct _Eina_Module Eina_Module; > +typedef struct _Eina_Rectangle Eina_Rectangle; > +#if USE(EO) > +typedef struct _Eo_Opaque Evas; > +typedef struct _Eo_Opaque Evas_Object; > +typedef struct _Eo_Opaque Ecore_Timer; > +#else > +typedef struct _Evas Evas; > +typedef struct _Evas_Object Evas_Object; > +typedef struct _Ecore_Timer Ecore_Timer; > +#endif > +#endif > + This structure is not really related to GType and gobject. Why don't you add new header such as EFLTypedefs.h in WTF/wtf/efl/ ?
Gyuyoung Kim
Comment 5 2014-03-22 17:25:36 PDT
(In reply to comment #4) > (From update of attachment 227549 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=227549&action=review > > > Source/WTF/wtf/gobject/GTypedefs.h:129 > > +#if PLATFORM(EFL) > > +typedef unsigned char Eina_Bool; > > +typedef struct _Evas_Point Evas_Point; > > +typedef struct _Evas_GL Evas_GL; > > +typedef struct _Evas_GL_Context Evas_GL_Context; > > +typedef struct _Evas_GL_Surface Evas_GL_Surface; > > +typedef struct _Ecore_Evas Ecore_Evas; > > +typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler; > > +typedef struct _Eina_List Eina_List; > > +typedef struct _Eina_Module Eina_Module; > > +typedef struct _Eina_Rectangle Eina_Rectangle; > > +#if USE(EO) > > +typedef struct _Eo_Opaque Evas; > > +typedef struct _Eo_Opaque Evas_Object; > > +typedef struct _Eo_Opaque Ecore_Timer; > > +#else > > +typedef struct _Evas Evas; > > +typedef struct _Evas_Object Evas_Object; > > +typedef struct _Ecore_Timer Ecore_Timer; > > +#endif > > +#endif > > + > > This structure is not really related to GType and gobject. > > Why don't you add new header such as EFLTypedefs.h in WTF/wtf/efl/ ? Ah, right. +1. How about ETypeDefs.h ?
Ryuan Choi
Comment 6 2014-03-22 17:50:41 PDT
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 227549 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=227549&action=review > > > > > Source/WTF/wtf/gobject/GTypedefs.h:129 > > > +#if PLATFORM(EFL) > > > +typedef unsigned char Eina_Bool; > > > +typedef struct _Evas_Point Evas_Point; > > > +typedef struct _Evas_GL Evas_GL; > > > +typedef struct _Evas_GL_Context Evas_GL_Context; > > > +typedef struct _Evas_GL_Surface Evas_GL_Surface; > > > +typedef struct _Ecore_Evas Ecore_Evas; > > > +typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler; > > > +typedef struct _Eina_List Eina_List; > > > +typedef struct _Eina_Module Eina_Module; > > > +typedef struct _Eina_Rectangle Eina_Rectangle; > > > +#if USE(EO) > > > +typedef struct _Eo_Opaque Evas; > > > +typedef struct _Eo_Opaque Evas_Object; > > > +typedef struct _Eo_Opaque Ecore_Timer; > > > +#else > > > +typedef struct _Evas Evas; > > > +typedef struct _Evas_Object Evas_Object; > > > +typedef struct _Ecore_Timer Ecore_Timer; > > > +#endif > > > +#endif > > > + > > > > This structure is not really related to GType and gobject. > > > > Why don't you add new header such as EFLTypedefs.h in WTF/wtf/efl/ ? > > Ah, right. +1. How about ETypeDefs.h ? GType is common word in GObject area (http://www.gtk.org/api/2.6/gobject/gobject-Type-Information.html). So, EType looks quite ambiguous to me and I didn't hear it before. How about EFLdefs.h ?
Hyowon Kim
Comment 7 2014-03-22 21:30:12 PDT
Hyowon Kim
Comment 8 2014-03-22 21:45:54 PDT
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (From update of attachment 227549 [details] [details] [details]) > > > View in context: https://bugs.webkit.org/attachment.cgi?id=227549&action=review > > > > > > > Source/WTF/wtf/gobject/GTypedefs.h:129 > > > > > > This structure is not really related to GType and gobject. > > > > > > Why don't you add new header such as EFLTypedefs.h in WTF/wtf/efl/ ? > > > > Ah, right. +1. How about ETypeDefs.h ? > > GType is common word in GObject area (http://www.gtk.org/api/2.6/gobject/gobject-Type-Information.html). > So, EType looks quite ambiguous to me and I didn't hear it before. > > How about EFLdefs.h ? I think adding EFL typedefs into GTypedefs.h is not bad, since Cairo, Clutter and GTK are already using it. But adding EflTypedefs.h is not a problem, so I've uploaded the new patch.
Gyuyoung Kim
Comment 9 2014-03-23 21:29:50 PDT
Comment on attachment 227598 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227598&action=review > Source/WTF/wtf/Platform.h:914 > +#if PLATFORM(EFL) Please add an empty line above this line.
Ryuan Choi
Comment 10 2014-03-23 21:51:40 PDT
Ryuan Choi
Comment 11 2014-03-23 21:52:05 PDT
Comment on attachment 227598 [details] Patch landed after applied
Note You need to log in before you can comment on or make changes to this bug.