Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_ipc_handlers.h 


Log Message:


LISt delcares. put list at top.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_ipc_handlers.h    2 Jun 2005 23:17:10 -0000       1.16
+++ e_ipc_handlers.h    3 Jun 2005 02:37:26 -0000       1.17
@@ -265,28 +265,29 @@
    GENERIC(HDL);
    Evas_List *dat = NULL;
    DECODE(e_ipc_codec_str_int_list_dec) {
-     RESPONSE(r, E_Response_Module_List, HDL);
+      LIST();
+      int count;
+      RESPONSE(r, E_Response_Module_List, HDL);
+
+      /* FIXME - this is a mess, needs to be merged into macros... */
+      count = evas_list_count(dat);
+      r->modules = malloc(sizeof(E_Response_Module_Data *) * count);
+      r->count = count;
 
-     /* FIXME - this is a mess, needs to be merged into macros... */
-     int count = evas_list_count(dat);
-     r->modules = malloc(sizeof(E_Response_Module_Data *) * count);
-     r->count = count;
-
-     LIST()
-     count = 0;
-     FOR(dat) {
-       E_Response_Module_Data *md;
-       E_Ipc_Str_Int *v;
-
-       v = l->data;
-       md = malloc(sizeof(E_Response_Module_Data));
-       
-       md->name = v->str;
-       md->enabled = v->val;
-       r->modules[count] = md;
-       count ++;
-     }
-     END_RESPONSE(r, E_RESPONSE_MODULE_LIST); /* FIXME - need a custom free */
+      count = 0;
+      FOR(dat) {
+        E_Response_Module_Data *md;
+        E_Ipc_Str_Int *v;
+        
+        v = l->data;
+        md = malloc(sizeof(E_Response_Module_Data));
+        
+        md->name = v->str;
+        md->enabled = v->val;
+        r->modules[count] = md;
+        count++;
+      }
+      END_RESPONSE(r, E_RESPONSE_MODULE_LIST); /* FIXME - need a custom free */
    }
    END_GENERIC();
 #endif




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to