E17: fix mixed declarations and code
authorVincent Torri <vincent.torri@gmail.com>
Sun, 13 May 2012 17:45:44 +0000 (17:45 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sun, 13 May 2012 17:45:44 +0000 (17:45 +0000)
SVN revision: 70975

src/bin/e_fm.c
src/bin/e_int_config_modules.c
src/bin/e_remember.c
src/bin/e_widget_frametable.c

index 9e49bf3..66f41e0 100644 (file)
@@ -2568,13 +2568,14 @@ _e_fm2_client_file_symlink(const char *path, const char *dest, const char *rel,
 #else
    char *args = NULL;
    size_t size = 0, length = 0;
+   int r;
 
    args = _e_fm_string_append_quoted(args, &size, &length, path);
    args = _e_fm_string_append_char(args, &size, &length, ' ');
    args = _e_fm_string_append_quoted(args, &size, &length, dest);
 
    fputs("WARNING: using new E_FM_OP_SYMLINK, remove deprecated ASAP\n", stderr);
-   int r = _e_fm_client_file_symlink(args, e_fm);
+   r = _e_fm_client_file_symlink(args, e_fm);
    free(args);
    return r;
 #endif
@@ -3144,6 +3145,7 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
          char *src = NULL;
          char *dst = NULL;
          char *p = e->data;
+         E_Fm2_Op_Registry_Entry *ere;
 
          if (!e->data) return;
 
@@ -3157,7 +3159,7 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
          dst = p + strlen(src) + 1;
          // printf("%s:%s(%d) Progress from slave #%d:\n\t%d%% done,\n\t%d seconds left,\n\t%zd done,\n\t%zd total,\n\tsrc = %s,\n\tdst = %s.\n", __FILE__, __FUNCTION__, __LINE__, e->ref, percent, seconds, done, total, src, dst);
 
-         E_Fm2_Op_Registry_Entry *ere = e_fm2_op_registry_entry_get(e->ref);
+         ere = e_fm2_op_registry_entry_get(e->ref);
          if (!ere) return;
          ere->percent = percent;
          ere->done = done;
@@ -6243,6 +6245,7 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
    Eina_List *fsel, *l, *ll, *il, *isel;
    char buf[4096];
    const char *fp;
+   Evas_Object *obj;
    Evas_Coord ox, oy, x, y;
    int adjust_icons = 0;
 
@@ -6424,7 +6427,6 @@ _e_fm2_cb_dnd_drop(void *data, const char *type, void *event)
    _e_fm2_dnd_drop_hide(sd->obj);
    _e_fm2_dnd_drop_all_hide(sd->obj);
    _e_fm2_list_walking++;
-   Evas_Object *obj;
    EINA_LIST_FOREACH(_e_fm2_list, l, obj)
      {
         if ((_e_fm2_list_walking > 0) &&
@@ -7260,6 +7262,7 @@ _e_fm2_cb_mouse_move(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__
 {
    Evas_Event_Mouse_Move *ev;
    E_Fm2_Smart_Data *sd;
+   E_Fm2_Icon *ic;
    Eina_List *l = NULL;
    int x, y, w, h;
    int sel_change = 0;
@@ -7322,7 +7325,6 @@ _e_fm2_cb_mouse_move(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__
    evas_object_smart_callback_call(sd->obj, "pan_changed", NULL);
  */
 
-   E_Fm2_Icon *ic;
    EINA_LIST_FOREACH(sd->icons, l, ic)
      {
         int ix, iy, iw, ih;
@@ -8550,8 +8552,10 @@ _e_fm2_toggle_inherit_dir_props(void *data, E_Menu *m, E_Menu_Item *mi)
 static void
 _e_fm2_view_menu_common(E_Menu *subm, E_Fm2_Smart_Data *sd)
 {
+   char buf[64];
    E_Menu_Item *mi;
    char view_mode;
+   int icon_size;
 
    view_mode = _e_fm2_view_mode_get(sd);
 
@@ -8591,8 +8595,7 @@ _e_fm2_view_menu_common(E_Menu *subm, E_Fm2_Smart_Data *sd)
    if (view_mode == E_FM2_VIEW_MODE_LIST)
      return;
 
-   char buf[64];
-   int icon_size = _e_fm2_icon_w_get(sd);
+   icon_size = _e_fm2_icon_w_get(sd);
 
    // show the icon size as selected (even if it might be influnced by e_scale)
    /* if (e_scale > 0.0)
index 5f0883d..bb2f243 100644 (file)
@@ -292,6 +292,7 @@ _toolbar_select_cb(void *data, void *data2)
 {
    CFType *cft, *cft_cat;
    E_Config_Dialog_Data *cfdata;
+   Eina_List *l_type;
    Evas_Coord w, h;
 
    cfdata = data;
@@ -311,15 +312,14 @@ _toolbar_select_cb(void *data, void *data2)
    e_widget_ilist_freeze(cfdata->l_modules);
    e_widget_ilist_clear(cfdata->l_modules);
 
-   Eina_List *l_type;
    EINA_LIST_FOREACH(cfdata->types, l_type, cft)
      {
-        if (strcmp(cft->key, cft_cat->key))
-          continue;
-
         CFModule *cfm;
         Eina_List *l_module;
 
+        if (strcmp(cft->key, cft_cat->key))
+          continue;
+
         EINA_LIST_FOREACH(cft->modules, l_module, cfm)
           _list_item_append(cfdata, cfm);
      }
index e069a76..55d191c 100644 (file)
@@ -295,6 +295,7 @@ EAPI int
 e_remember_default_match_set(E_Remember *rem, E_Border *bd)
 {
    const char *title, *clasz, *name, *role;
+   int match;
    
    if (rem->name) eina_stringshare_del(rem->name);
    if (rem->class) eina_stringshare_del(rem->class);
@@ -312,7 +313,7 @@ e_remember_default_match_set(E_Remember *rem, E_Border *bd)
    role = bd->client.icccm.window_role;
    if (!role || role[0] == 0) role = NULL;
    
-   int match = E_REMEMBER_MATCH_TRANSIENT;
+   match = E_REMEMBER_MATCH_TRANSIENT;
    if (bd->client.icccm.transient_for != 0)
      rem->transient = 1;
    else
index dd1cd30..2a103c2 100644 (file)
@@ -77,7 +77,7 @@ e_widget_frametable_object_append(Evas_Object *obj, Evas_Object *sobj, int col,
 EAPI void
 e_widget_frametable_object_append_full(Evas_Object *obj, Evas_Object *sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int expand_w, int expand_h, double align_x, double align_y, Evas_Coord min_w, Evas_Coord min_h, Evas_Coord max_w, Evas_Coord max_h)
 {
-   E_Widget_Data *wd = e_widget_data_get(obj);;
+   E_Widget_Data *wd = e_widget_data_get(obj);
    Evas_Coord mw = 0, mh = 0;
 
    e_table_pack(wd->o_table, sobj, col, row, colspan, rowspan);