Enlightenment CVS committal

Author  : essiene
Project : e17
Module  : proto

Dir     : e17/proto/entrance_edit_gui/src/widgets


Modified Files:
        _ew_list.c _ew_list.h ew.c ew.h ew_dialog.c ew_dialog.h 


Log Message:
Cleanup all them funky struct typedefs. This looks neater. Thnx rhapsodhy

===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/_ew_list.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- _ew_list.c  12 Aug 2006 15:23:53 -0000      1.2
+++ _ew_list.c  13 Aug 2006 00:54:58 -0000      1.3
@@ -6,7 +6,7 @@
 Entrance_List
 __ew_list_new(void)
 {
-       Entrance_List el = calloc(1, sizeof(_Entrance_List_Data));
+       Entrance_List el = calloc(1, sizeof(*el));
        if(el) 
        {
                el->owner = NULL;
@@ -64,7 +64,7 @@
 Entrance_List_Data 
 ew_listdata_new(void)
 {
-       Entrance_List_Data ewld = calloc(1, sizeof(_Entrance_List_Data));
+       Entrance_List_Data ewld = calloc(1, sizeof(*ewld));
        if(ewld) 
        {
                ewld->func = NULL;
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/_ew_list.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- _ew_list.h  12 Aug 2006 09:42:13 -0000      1.1
+++ _ew_list.h  13 Aug 2006 00:54:58 -0000      1.2
@@ -1,22 +1,18 @@
 #ifndef _EW_LIST_H
 #define _EW_LIST_H
 
-struct __Entrance_List_Data {
+typedef struct _Entrance_List_Data {
        void (*func)(void);
        void *data;
-};
+} *Entrance_List_Data;
 
-typedef struct __Entrance_List_Data _Entrance_List_Data;
-typedef struct __Entrance_List_Data *Entrance_List_Data;
 
-struct __Entrance_List {
+typedef struct _Entrance_List {
        Etk_Widget *owner;
        Etk_Widget *box;
        Etk_Tree_Col *col;
-};
+} *Entrance_List;
 
-typedef struct __Entrance_List _Entrance_List;
-typedef struct __Entrance_List *Entrance_List;
 
 #define EW_LIST_FREE(ew) if(1) \
 { \
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew.c        12 Aug 2006 09:42:13 -0000      1.1
+++ ew.c        13 Aug 2006 00:54:58 -0000      1.2
@@ -29,7 +29,7 @@
 Entrance_Widget 
 ew_new(void)
 {
-       Entrance_Widget ew = calloc(1, sizeof(_Entrance_Widget));
+       Entrance_Widget ew = calloc(1, sizeof(*ew));
        if(ew) 
        {
                ew->owner = NULL;
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew.h        12 Aug 2006 09:42:13 -0000      1.1
+++ ew.h        13 Aug 2006 00:54:58 -0000      1.2
@@ -1,13 +1,10 @@
 #ifndef _EW_H
 #define _EW_H
 
-struct __Entrance_Widget {
+typedef struct _Entrance_Widget {
        Etk_Widget *owner;
        Etk_Widget *box;
-};
-
-typedef struct __Entrance_Widget _Entrance_Widget;
-typedef struct __Entrance_Widget *Entrance_Widget;
+} *Entrance_Widget;
 
 
 #define EW_FREE(ew) if(1) \
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_dialog.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ew_dialog.c 12 Aug 2006 15:23:53 -0000      1.2
+++ ew_dialog.c 13 Aug 2006 00:54:58 -0000      1.3
@@ -6,7 +6,7 @@
 Entrance_Dialog 
 _ew_dialog_new()
 {
-       Entrance_Dialog ed = calloc(1, sizeof(_Entrance_Dialog));
+       Entrance_Dialog ed = calloc(1, sizeof(*ed));
        if(ed)
        {
                ed->owner = NULL;
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_dialog.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew_dialog.h 12 Aug 2006 09:42:13 -0000      1.1
+++ ew_dialog.h 13 Aug 2006 00:54:58 -0000      1.2
@@ -1,14 +1,11 @@
 #ifndef _EW_DIALOG_H
 #define _EW_DIALOG_H
 
-struct __Entrance_Dialog {
+typedef struct _Entrance_Dialog {
        Etk_Widget *owner;
        Etk_Widget *box;
        Etk_Widget *hbox;
-};
-
-typedef struct __Entrance_Dialog _Entrance_Dialog;
-typedef struct __Entrance_Dialog *Entrance_Dialog;
+} *Entrance_Dialog;
 
 #define EW_DIALOG_FREE(ew) if(1) \
 { \



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to