Rename EINA_INLIST_ITER_NEXT/EINA_INLIST_ITER_LAST to EINA_INLIST_FOREACH/
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 21 Oct 2008 12:19:57 +0000 (12:19 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 21 Oct 2008 12:19:57 +0000 (12:19 +0000)
EINA_INLIST_REVERSE_FOREACH so it best match is behaviour. Asked by Gustavo.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@36928 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

23 files changed:
src/lib/canvas/evas_callbacks.c
src/lib/canvas/evas_events.c
src/lib/canvas/evas_layer.c
src/lib/canvas/evas_main.c
src/lib/canvas/evas_object_image.c
src/lib/canvas/evas_object_main.c
src/lib/canvas/evas_object_text.c
src/lib/canvas/evas_object_textblock.c
src/lib/canvas/evas_render.c
src/lib/engines/common/evas_font_load.c
src/lib/engines/common/evas_pipe.c
src/lib/engines/common/evas_polygon_main.c
src/lib/engines/common/evas_regionbuf.c
src/lib/engines/common_16/evas_soft16_polygon.c
src/modules/engines/directfb/polygon.c
src/modules/engines/software_16_ddraw/evas_engine.c
src/modules/engines/software_16_sdl/evas_engine.c
src/modules/engines/software_16_wince/evas_engine.c
src/modules/engines/software_16_x11/evas_engine.c
src/modules/engines/xrender_x11/evas_engine_image.c
src/modules/engines/xrender_x11/evas_engine_xrender.c
src/modules/engines/xrender_xcb/evas_engine_image.c
src/modules/engines/xrender_xcb/evas_engine_xrender.c

index 9dfedf6..2967c2b 100644 (file)
@@ -44,7 +44,7 @@ evas_object_event_callback_all_del(Evas_Object *obj)
    Evas_Func_Node *fn;
 
    if (!obj->callbacks) return;
-   EINA_INLIST_ITER_NEXT(obj->callbacks->callbacks, fn)
+   EINA_INLIST_FOREACH(obj->callbacks->callbacks, fn)
      fn->delete_me = 1;
 }
 
@@ -385,7 +385,7 @@ evas_object_event_callback_del(Evas_Object *obj, Evas_Callback_Type type, void (
 
    if (!obj->callbacks) return NULL;
 
-   EINA_INLIST_ITER_NEXT(obj->callbacks->callbacks, fn)
+   EINA_INLIST_FOREACH(obj->callbacks->callbacks, fn)
      {
        if ((fn->func == func) && (fn->type == type) && (!fn->delete_me))
          {
@@ -442,7 +442,7 @@ evas_object_event_callback_del_full(Evas_Object *obj, Evas_Callback_Type type, v
 
    if (!obj->callbacks) return NULL;
 
-   EINA_INLIST_ITER_NEXT(obj->callbacks->callbacks, fn)
+   EINA_INLIST_FOREACH(obj->callbacks->callbacks, fn)
      {
        if ((fn->func == func) && (fn->type == type) && (fn->data == data) && (!fn->delete_me))
          {
index 2f10108..61bc3bb 100644 (file)
@@ -7,7 +7,7 @@ _evas_event_object_list_in_get(Evas *e, Evas_List *in, const Eina_Inlist *list,
    Evas_Object *obj;
 
    if (!list) return in;
-   EINA_INLIST_ITER_LAST(list, obj)
+   EINA_INLIST_REVERSE_FOREACH(list, obj)
      {
        if (obj == stop)
          {
@@ -62,7 +62,7 @@ evas_event_objects_event_list(Evas *e, Evas_Object *stop, int x, int y)
    Evas_List *in = NULL;
 
    if (!e->layers) return NULL;
-   EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+   EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
      {
        int norep;
 
@@ -145,11 +145,11 @@ evas_event_thaw(Evas *e)
      {
        Evas_Layer *lay;
 
-       EINA_INLIST_ITER_NEXT((EINA_INLIST_GET(e->layers)), lay)
+       EINA_INLIST_FOREACH((EINA_INLIST_GET(e->layers)), lay)
          {
             Evas_Object *obj;
 
-            EINA_INLIST_ITER_NEXT(lay->objects, obj)
+            EINA_INLIST_FOREACH(lay->objects, obj)
               {
                  evas_object_clip_recalc(obj);
                  evas_object_recalc_clippees(obj);
index ad1e6d1..993abda 100644 (file)
@@ -54,7 +54,7 @@ evas_layer_pre_free(Evas_Layer *lay)
 {
    Evas_Object *obj;
 
-   EINA_INLIST_ITER_NEXT(lay->objects, obj)
+   EINA_INLIST_FOREACH(lay->objects, obj)
      {
        if ((!obj->smart.parent) && (!obj->delete_me))
          evas_object_del(obj);
@@ -79,7 +79,7 @@ evas_layer_find(Evas *e, short layer_num)
 {
    Evas_Layer *layer;
 
-   EINA_INLIST_ITER_NEXT(e->layers, layer)
+   EINA_INLIST_FOREACH(e->layers, layer)
      {
        if (layer->layer == layer_num) return layer;
      }
@@ -91,7 +91,7 @@ evas_layer_add(Evas_Layer *lay)
 {
    Evas_Layer *layer;
 
-   EINA_INLIST_ITER_NEXT(lay->evas->layers, layer)
+   EINA_INLIST_FOREACH(lay->evas->layers, layer)
      {
        if (layer->layer > lay->layer)
          {
index eeb576a..0651d92 100644 (file)
@@ -110,13 +110,13 @@ evas_free(Evas *e)
    while (del)
      {
        del = 0;
-       EINA_INLIST_ITER_NEXT(e->layers, lay)
+       EINA_INLIST_FOREACH(e->layers, lay)
          {
             Evas_Object *o;
 
             evas_layer_pre_free(lay);
 
-            EINA_INLIST_ITER_NEXT(lay->objects, o)
+            EINA_INLIST_FOREACH(lay->objects, o)
               {
                  if ((o->callbacks) && (o->callbacks->walking_list))
                    {
index fa72e9f..86c1e6c 100644 (file)
@@ -1793,11 +1793,11 @@ evas_image_cache_reload(Evas *e)
    MAGIC_CHECK_END();
 
    evas_image_cache_flush(e);
-   EINA_INLIST_ITER_NEXT(e->layers, layer)
+   EINA_INLIST_FOREACH(e->layers, layer)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_NEXT(layer->objects, obj)
+       EINA_INLIST_FOREACH(layer->objects, obj)
          {
             Evas_Object_Image *o;
 
@@ -1809,11 +1809,11 @@ evas_image_cache_reload(Evas *e)
          }
      }
    evas_image_cache_flush(e);
-   EINA_INLIST_ITER_NEXT(e->layers, layer)
+   EINA_INLIST_FOREACH(e->layers, layer)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_NEXT(layer->objects, obj)
+       EINA_INLIST_FOREACH(layer->objects, obj)
          {
             Evas_Object_Image *o;
 
index 5b8bdfe..16f06f4 100644 (file)
@@ -1413,11 +1413,11 @@ evas_object_top_at_xy_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas_Bool i
    yy = y;
 ////   xx = evas_coord_world_x_to_screen(e, x);
 ////   yy = evas_coord_world_y_to_screen(e, y);
-   EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+   EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+       EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
          {
             if (obj->delete_me) continue;
             if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
@@ -1469,11 +1469,11 @@ evas_object_top_in_rectangle_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas
 ////   hh = evas_coord_world_y_to_screen(e, h);
    if (ww < 1) ww = 1;
    if (hh < 1) hh = 1;
-   EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+   EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+       EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
          {
             if (obj->delete_me) continue;
             if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
@@ -1507,11 +1507,11 @@ evas_objects_at_xy_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas_Bool incl
    yy = y;
 ////   xx = evas_coord_world_x_to_screen(e, x);
 ////   yy = evas_coord_world_y_to_screen(e, y);
-   EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+   EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+       EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
          {
             if (obj->delete_me) continue;
             if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
@@ -1551,11 +1551,11 @@ evas_objects_in_rectangle_get(const Evas *e, Evas_Coord x, Evas_Coord y, Evas_Co
 ////   hh = evas_coord_world_y_to_screen(e, h);
    if (ww < 1) ww = 1;
    if (hh < 1) hh = 1;
-   EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+   EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+       EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
          {
             if (obj->delete_me) continue;
             if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
index 19c6d0d..8b00989 100644 (file)
@@ -1018,7 +1018,7 @@ evas_font_object_rehint(Evas_Object *obj)
 {
    if (obj->smart.smart)
      {
-       EINA_INLIST_ITER_NEXT(evas_object_smart_members_get_direct(obj), obj)
+       EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj)
          evas_font_object_rehint(obj);
      }
    else
@@ -1040,11 +1040,11 @@ evas_font_hinting_set(Evas *e, Evas_Font_Hinting_Flags hinting)
    MAGIC_CHECK_END();
    if (e->hinting == hinting) return;
    e->hinting = hinting;
-   EINA_INLIST_ITER_NEXT(e->layers, lay)
+   EINA_INLIST_FOREACH(e->layers, lay)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_NEXT(lay->objects, obj)
+       EINA_INLIST_FOREACH(lay->objects, obj)
          evas_font_object_rehint(obj);
      }
 }
index ca643d0..4841299 100644 (file)
@@ -224,7 +224,7 @@ _style_match_replace(Evas_Textblock_Style *ts, char *s)
 {
    Evas_Object_Style_Tag *tag;
 
-   EINA_INLIST_ITER_NEXT(ts->tags, tag)
+   EINA_INLIST_FOREACH(ts->tags, tag)
      {
        if (!strcmp(tag->replace, s)) return tag->tag;
      }
@@ -236,7 +236,7 @@ _style_match_tag(Evas_Textblock_Style *ts, char *s)
 {
    Evas_Object_Style_Tag *tag;
 
-   EINA_INLIST_ITER_NEXT(ts->tags, tag)
+   EINA_INLIST_FOREACH(ts->tags, tag)
      {
        if (!strcmp(tag->tag, s)) return tag->replace;
      }
@@ -1491,7 +1491,7 @@ _layout_line_advance(Ctxt *c, Evas_Object_Textblock_Format *fmt)
    c->maxascent = c->maxdescent = 0;
    if (!c->ln->items)
      _layout_format_ascent_descent_adjust(c, fmt);
-   EINA_INLIST_ITER_NEXT(c->ln->items, it)
+   EINA_INLIST_FOREACH(c->ln->items, it)
      {
        int endx;
 
@@ -1733,7 +1733,7 @@ _layout_walk_back_to_item_word_redo(Ctxt *c, Evas_Object_Textblock_Item *it)
    int index, tw, th, inset, adv;
 
    /* it is not appended yet */
-   EINA_INLIST_ITER_LAST((EINA_INLIST_GET(c->ln->items)), pit)
+   EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(c->ln->items)), pit)
      {
        if (_layout_ends_with_space(pit->text))
          {
@@ -2079,7 +2079,7 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_
        return;
      }
    /* run through all text and format nodes generating lines */
-   EINA_INLIST_ITER_NEXT(c->o->nodes, n)
+   EINA_INLIST_FOREACH(c->o->nodes, n)
      {
        if (!c->ln) _layout_line_new(c, fmt);
        if ((n->type == NODE_FORMAT) && (n->text))
@@ -2174,7 +2174,7 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_
        c->format_stack = evas_list_remove_list(c->format_stack, c->format_stack);
        _format_free(c->obj, fmt);
      }
-   EINA_INLIST_ITER_NEXT(c->lines, ln)
+   EINA_INLIST_FOREACH(c->lines, ln)
      {
        if (ln->line_no == -1)
          {
@@ -2251,14 +2251,14 @@ _find_layout_item_line_match(Evas_Object *obj, Evas_Object_Textblock_Node *n, in
    Evas_Object_Textblock *o;
 
    o = (Evas_Object_Textblock *)(obj->object_data);
-/*    EINA_INLIST_ITER_NEXT(o->nodes, nn) */
+/*    EINA_INLIST_FOREACH(o->nodes, nn) */
 /*      ; */
-   EINA_INLIST_ITER_NEXT(o->lines, ln)
+   EINA_INLIST_FOREACH(o->lines, ln)
      {
        Evas_Object_Textblock_Format_Item *fit;
        Evas_Object_Textblock_Item *it;
 
-       EINA_INLIST_ITER_NEXT(ln->items, it)
+       EINA_INLIST_FOREACH(ln->items, it)
          {
             if (it->source_node == n)
               {
@@ -2270,7 +2270,7 @@ _find_layout_item_line_match(Evas_Object *obj, Evas_Object_Textblock_Node *n, in
                    }
               }
          }
-       EINA_INLIST_ITER_NEXT(ln->format_items, fit)
+       EINA_INLIST_FOREACH(ln->format_items, fit)
          {
             if (fit->source_node == n)
               {
@@ -2290,11 +2290,11 @@ _find_layout_format_item_line_match(Evas_Object *obj, Evas_Object_Textblock_Node
    Evas_Object_Textblock *o;
 
    o = (Evas_Object_Textblock *)(obj->object_data);
-   EINA_INLIST_ITER_NEXT(o->lines, ln)
+   EINA_INLIST_FOREACH(o->lines, ln)
      {
        Evas_Object_Textblock_Format_Item *fi;
 
-       EINA_INLIST_ITER_NEXT(ln->format_items, fi)
+       EINA_INLIST_FOREACH(ln->format_items, fi)
          {
             if (fi->source_node == n)
               {
@@ -2313,7 +2313,7 @@ _find_layout_line_num(const Evas_Object *obj, int line)
    Evas_Object_Textblock *o;
    
    o = (Evas_Object_Textblock *)(obj->object_data);
-   EINA_INLIST_ITER_NEXT(o->lines, ln)
+   EINA_INLIST_FOREACH(o->lines, ln)
      {
        if (ln->line_no == line) return ln;
      }
@@ -2961,7 +2961,7 @@ evas_object_textblock_text_markup_get(const Evas_Object *obj)
    
    TB_HEAD_RETURN(NULL);
    if (o->markup_text) return(o->markup_text);
-   EINA_INLIST_ITER_NEXT(o->nodes, n)
+   EINA_INLIST_FOREACH(o->nodes, n)
      {
         if ((n->type == NODE_FORMAT) && (n->text))
          {
@@ -4309,7 +4309,7 @@ evas_textblock_cursor_range_text_get(const Evas_Textblock_Cursor *cur1, const Ev
    n2 = cur2->node;
    index = cur2->pos;
    chr = evas_common_font_utf8_get_next((unsigned char *)n2->text, &index);
-   EINA_INLIST_ITER_NEXT(n1, n)
+   EINA_INLIST_FOREACH(n1, n)
      {
        if (n->type == NODE_TEXT)
          {
@@ -4569,12 +4569,12 @@ evas_textblock_cursor_char_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord x, E
    if (!o->formatted.valid) _relayout(cur->obj);
    x += o->style_pad.l;
    y += o->style_pad.t;
-   EINA_INLIST_ITER_NEXT(o->lines, ln)
+   EINA_INLIST_FOREACH(o->lines, ln)
      {
        if (ln->y > y) break;
        if ((ln->y <= y) && ((ln->y + ln->h) > y))
          {
-            EINA_INLIST_ITER_NEXT(ln->items, it)
+            EINA_INLIST_FOREACH(ln->items, it)
               {
                  if ((it->x + ln->x) > x)
                    {
@@ -4600,7 +4600,7 @@ evas_textblock_cursor_char_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord x, E
                       return 1;
                    }
               }
-            EINA_INLIST_ITER_NEXT(ln->format_items, fi)
+            EINA_INLIST_FOREACH(ln->format_items, fi)
               {
                  if ((fi->x + ln->x) > x) break;
                  if (((fi->x + ln->x) <= x) && (((fi->x + ln->x) + fi->w) > x))
@@ -4638,7 +4638,7 @@ evas_textblock_cursor_line_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord y)
    o = (Evas_Object_Textblock *)(cur->obj->object_data);
    if (!o->formatted.valid) _relayout(cur->obj);
    y += o->style_pad.t;
-   EINA_INLIST_ITER_NEXT(o->lines, ln)
+   EINA_INLIST_FOREACH(o->lines, ln)
      {
        if (ln->y > y) break;
        if ((ln->y <= y) && ((ln->y + ln->h) > y))
@@ -4963,7 +4963,7 @@ evas_object_textblock_render(Evas_Object *obj, void *output, void *context, void
    obj->layer->evas->engine.func->context_multiplier_unset(output,
                                                           context);
 #define ITEM_WALK() \
-   EINA_INLIST_ITER_NEXT(o->lines, ln) \
+   EINA_INLIST_FOREACH(o->lines, ln) \
      { \
        Evas_Object_Textblock_Item *it; \
        \
@@ -4971,7 +4971,7 @@ evas_object_textblock_render(Evas_Object *obj, void *output, void *context, void
         pline = 0; \
         pline2 = 0; \
        pstrike = 0; \
-       EINA_INLIST_ITER_NEXT(ln->items, it) \
+       EINA_INLIST_FOREACH(ln->items, it) \
          { \
             int yoff; \
             \
@@ -5549,11 +5549,11 @@ _evas_object_textblock_rehint(Evas_Object *obj)
    Evas_Object_Textblock_Line *ln;
 
    o = (Evas_Object_Textblock *)(obj->object_data);
-   EINA_INLIST_ITER_NEXT(o->lines, ln)
+   EINA_INLIST_FOREACH(o->lines, ln)
      {
        Evas_Object_Textblock_Item *it;
 
-       EINA_INLIST_ITER_NEXT(ln->items, it)
+       EINA_INLIST_FOREACH(ln->items, it)
          {
             if (it->format->font.font)
               evas_font_load_hinting_set(obj->layer->evas,
index 774bf01..8885157 100644 (file)
@@ -136,7 +136,7 @@ _evas_render_phase1_object_process(Evas *e, Evas_Object *obj, Eina_Array *active
 
             eina_array_push(render_objects, obj);
             obj->render_pre = 1;
-            EINA_INLIST_ITER_NEXT(evas_object_smart_members_get_direct(obj), obj2)
+            EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj2)
               {
                  _evas_render_phase1_object_process(e, obj2,
                                                     active_objects,
@@ -173,7 +173,7 @@ _evas_render_phase1_object_process(Evas *e, Evas_Object *obj, Eina_Array *active
 
                  eina_array_push(render_objects, obj);
                  obj->render_pre = 1;
-                 EINA_INLIST_ITER_NEXT(evas_object_smart_members_get_direct(obj), obj2)
+                 EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj2)
                    {
                       _evas_render_phase1_object_process(e, obj2,
                                                          active_objects,
@@ -204,11 +204,11 @@ _evas_render_phase1_process(Evas *e, Eina_Array *active_objects, Eina_Array *res
    Evas_Layer *lay;
    int clean_them = 0;
 
-   EINA_INLIST_ITER_NEXT(e->layers, lay)
+   EINA_INLIST_FOREACH(e->layers, lay)
      {
        Evas_Object *obj;
 
-       EINA_INLIST_ITER_NEXT(lay->objects, obj)
+       EINA_INLIST_FOREACH(lay->objects, obj)
          {
             clean_them |= _evas_render_phase1_object_process(e, obj,
                                                              active_objects, restack_objects,
index 12b7895..b763426 100644 (file)
@@ -94,7 +94,7 @@ evas_common_font_source_find(const char *name)
    RGBA_Font_Source *fs;
 
    if (!name) return NULL;
-   EINA_INLIST_ITER_NEXT(fonts_src, fs)
+   EINA_INLIST_FOREACH(fonts_src, fs)
      {
        if ((fs->name) && (!strcmp(name, fs->name)))
          {
@@ -549,7 +549,7 @@ evas_common_font_flush_last(void)
    RGBA_Font_Int *fi_tmp;
    RGBA_Font_Int *fi = NULL;
 
-   EINA_INLIST_ITER_NEXT(fonts, fi_tmp)
+   EINA_INLIST_FOREACH(fonts, fi_tmp)
      {
        if (fi_tmp->references == 0) fi = fi_tmp;
      }
@@ -573,7 +573,7 @@ evas_common_font_int_find(const char *name, int size)
 {
    RGBA_Font_Int *fi;
 
-   EINA_INLIST_ITER_NEXT(fonts, fi)
+   EINA_INLIST_FOREACH(fonts, fi)
      {
        if ((fi->size == size) && (!strcmp(name, fi->src->name)))
          {
index 2ea14e9..d3d5d7e 100644 (file)
@@ -87,7 +87,7 @@ evas_common_pipe_thread(void *data)
 //       {
 //          thinfo->info = NULL;
 //          printf(" TH %i GO\n", thinfo->thread_num);
-       EINA_INLIST_ITER_NEXT(EINA_INLIST_GET(info->im->pipe), p)
+       EINA_INLIST_FOREACH(EINA_INLIST_GET(info->im->pipe), p)
               {
                  int i;
 
index ba023ec..f92b1bc 100644 (file)
@@ -166,7 +166,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po
 
    evas_common_cpu_end_opt();
 
-   n = 0; EINA_INLIST_ITER_NEXT(points, pt) n++;
+   n = 0; EINA_INLIST_FOREACH(points, pt) n++;
    if (n < 3) return;
    edges = malloc(sizeof(RGBA_Edge) * n);
    if (!edges) return;
@@ -185,7 +185,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po
      }
 
    k = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        point[k].x = pt->x;
        point[k].y = pt->y;
@@ -195,7 +195,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po
    qsort(point, n, sizeof(RGBA_Vertex), polygon_point_sorter);
    for (k = 0; k < n; k++) sorted_index[k] = point[k].i;
    k = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        point[k].x = pt->x;
        point[k].y = pt->y;
@@ -275,7 +275,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po
      {
        RGBA_Span *span;
 
-       EINA_INLIST_ITER_NEXT(spans, span)
+       EINA_INLIST_FOREACH(spans, span)
          {
             DATA32 *ptr;
 
index 70e0c13..711882e 100644 (file)
@@ -54,7 +54,7 @@ evas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)
    if (x2 < (rb->w - 1)) x2 = rb->w - 1;
    sp_start = NULL;
    sp_stop = NULL;
-   EINA_INLIST_ITER_NEXT(rb->spans[y], span)
+   EINA_INLIST_FOREACH(rb->spans[y], span)
      {
        nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;
        /* we dont know what t do with the span yet */
@@ -168,7 +168,7 @@ evas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)
    if (x2 < (rb->w - 1)) x2 = rb->w - 1;
    sp_start = NULL;
    sp_stop = NULL;
-   EINA_INLIST_ITER_NEXT(rb->spans[y], span)
+   EINA_INLIST_FOREACH(rb->spans[y], span)
      {
        nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;
        /* we dont know what t do with the span yet */
index 3129f19..9400aa0 100644 (file)
@@ -113,7 +113,7 @@ soft16_polygon_draw(Soft16_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point
      return;
 
    n = 0;
-   EINA_INLIST_ITER_NEXT(points, pt) n++;
+   EINA_INLIST_FOREACH(points, pt) n++;
 
    if (n < 3)
      return;
@@ -138,7 +138,7 @@ soft16_polygon_draw(Soft16_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point
      }
 
    k = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        point[k].x = pt->x;
        point[k].y = pt->y;
@@ -151,7 +151,7 @@ soft16_polygon_draw(Soft16_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point
      sorted_index[k] = point[k].i;
 
    k = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        point[k].x = pt->x;
        point[k].y = pt->y;
index f108a2d..8e2d288 100644 (file)
@@ -159,7 +159,7 @@ _dfb_polygon_draw(IDirectFBSurface *surface, RGBA_Draw_Context *dc, Eina_Inlist
    if (!_dfb_surface_set_color_from_context(surface, dc))
      return;
 
-   n = 0; EINA_INLIST_ITER_NEXT(points, pt) n++;
+   n = 0; EINA_INLIST_FOREACH(points, pt) n++;
    if (n < 3) return;
    edges = malloc(sizeof(RGBA_Edge) * n);
    if (!edges) return;
@@ -178,7 +178,7 @@ _dfb_polygon_draw(IDirectFBSurface *surface, RGBA_Draw_Context *dc, Eina_Inlist
      }
 
    k = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        point[k].x = pt->x;
        point[k].y = pt->y;
@@ -188,7 +188,7 @@ _dfb_polygon_draw(IDirectFBSurface *surface, RGBA_Draw_Context *dc, Eina_Inlist
    qsort(point, n, sizeof(RGBA_Vertex), polygon_point_sorter);
    for (k = 0; k < n; k++) sorted_index[k] = point[k].i;
    k = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        point[k].x = pt->x;
        point[k].y = pt->y;
index 78419dd..d87e3c8 100644 (file)
@@ -80,7 +80,7 @@ _tmp_out_alloc(Render_Engine *re)
    Tilebuf_Rect *r;
    int w = 0, h = 0;
 
-   EINA_INLIST_ITER_NEXT(re->rects, r)
+   EINA_INLIST_FOREACH(re->rects, r)
      {
        if (r->w > w) w = r->w;
        if (r->h > h) h = r->h;
index 8ef9377..a215a09 100644 (file)
@@ -88,7 +88,7 @@ _tmp_out_alloc(Render_Engine *re)
    Tilebuf_Rect *r;
    int w = 0, h = 0;
 
-   EINA_INLIST_ITER_NEXT(re->rects, r)
+   EINA_INLIST_FOREACH(re->rects, r)
      {
        if (r->w > w) w = r->w;
        if (r->h > h) h = r->h;
index f3e4b4f..0ca6b0b 100644 (file)
@@ -113,7 +113,7 @@ _tmp_out_alloc(Render_Engine *re)
    Tilebuf_Rect *r;
    int w = 0, h = 0;
 
-   EINA_INLIST_ITER_NEXT(re->rects, r)
+   EINA_INLIST_FOREACH(re->rects, r)
      {
        if (r->w > w) w = r->w;
        if (r->h > h) h = r->h;
index 5788d33..7327bb7 100644 (file)
@@ -70,7 +70,7 @@ _tmp_out_alloc(Render_Engine *re)
    Tilebuf_Rect *r;
    int w = 0, h = 0;
 
-   EINA_INLIST_ITER_NEXT(re->rects, r)
+   EINA_INLIST_FOREACH(re->rects, r)
      {
        if (r->w > w) w = r->w;
        if (r->h > h) h = r->h;
index baf485e..f21263c 100644 (file)
@@ -597,7 +597,7 @@ _xre_image_surface_gen(XR_Image *im)
             rects = evas_common_tilebuf_get_render_rects(im->updates);
             if (rects)
               {
-                 EINA_INLIST_ITER_NEXT(rects, r)
+                 EINA_INLIST_FOREACH(rects, r)
                    {
                       int rx, ry, rw, rh;
                       
index 42de951..ad8ddb6 100644 (file)
@@ -686,7 +686,7 @@ _xre_poly_draw(Xrender_Surface *rs, RGBA_Draw_Context *dc, RGBA_Polygon_Point *p
    int op;
    
    if ((!rs) || (!dc)) return;
-   num = 0; EINA_INLIST_ITER_NEXT(points, pt) num++;
+   num = 0; EINA_INLIST_FOREACH(points, pt) num++;
    if (num < 3) return;
    op = PictOpOver;
    if (dc->render_op == _EVAS_RENDER_BLEND)
@@ -725,7 +725,7 @@ _xre_poly_draw(Xrender_Surface *rs, RGBA_Draw_Context *dc, RGBA_Polygon_Point *p
    pts = malloc(num * sizeof(XPointDouble));
    if (!pts) return;
    i = 0;
-   EINA_INLIST_ITER_NEXT(points, pt)
+   EINA_INLIST_FOREACH(points, pt)
      {
        if (i < num)
          {
index 2c46be4..323f26c 100644 (file)
@@ -536,7 +536,7 @@ _xre_image_surface_gen(XR_Image *im)
             rects = evas_common_tilebuf_get_render_rects(im->updates);
             if (rects)
               {
-                 EINA_INLIST_ITER_NEXT(rects, r)
+                 EINA_INLIST_FOREACH(rects, r)
                    {
                       int rx, ry, rw, rh;
                       
index a91b488..b13cc27 100644 (file)
@@ -820,7 +820,7 @@ _xre_poly_draw(Xcb_Render_Surface *rs, RGBA_Draw_Context *dc, RGBA_Polygon_Point
 /*    int op; */
 
 /*    if ((!rs) || (!dc)) return; */
-/*    num = 0; EINA_INLIST_ITER_NEXT(points, pt) num++; */
+/*    num = 0; EINA_INLIST_FOREACH(points, pt) num++; */
 /*    if (num < 3) return; */
 /*    a = (dc->col.col >> 24) & 0xff; */
 /*    if (a == 0) return; */
@@ -840,7 +840,7 @@ _xre_poly_draw(Xcb_Render_Surface *rs, RGBA_Draw_Context *dc, RGBA_Polygon_Point
 /*    pts = malloc(num * sizeof(XPointDouble)); */
 /*    if (!pts) return; */
 /*    i = 0; */
-/*    EINA_INLIST_ITER_NEXT(points, pt) */
+/*    EINA_INLIST_FOREACH(points, pt) */
 /*      { */
 /*     if (i < num) */
 /*       { */