I would Agree....tho are those in the past that say we have done just 
that.....

Isn't that what we do...duplicate code ? :P.....well after a while 
doesn't that code become better??

Long Live E


dh (cpm)


Enlightenment SVN wrote:
> Log:
>   dont repeat code
>   
>   
> Author:       raster
> Date:         2008-10-26 20:12:59 -0700 (Sun, 26 Oct 2008)
> New Revision: 37191
> 
> Modified:
>   trunk/evas/src/lib/canvas/evas_object_textblock.c 
> 
> Modified: trunk/evas/src/lib/canvas/evas_object_textblock.c
> ===================================================================
> --- trunk/evas/src/lib/canvas/evas_object_textblock.c 2008-10-27 03:03:59 UTC 
> (rev 37190)
> +++ trunk/evas/src/lib/canvas/evas_object_textblock.c 2008-10-27 03:12:59 UTC 
> (rev 37191)
> @@ -2682,22 +2682,11 @@
>  _prepend_escaped_char(Evas_Textblock_Cursor *cur, const char *s,
>                    const char *s_end)
>  {
> -   const char *map_itr, *map_end;
> -
> -   map_itr = escape_strings;
> -   map_end = map_itr + sizeof(escape_strings);
> -
> -   while (map_itr < map_end)
> -     {
> -     if (_is_eq_and_advance(s, s_end, &map_itr, map_end))
> -       {
> -          evas_textblock_cursor_text_prepend(cur, map_itr);
> -          return;
> -       }
> -     
> -     if (map_itr < map_end)
> -       _advance_after_end_of_string(&map_itr);
> -     }
> +   const char *escape;
> +   
> +   escape = _escaped_char_get(s, s_end);
> +   if (escape)
> +     evas_textblock_cursor_text_prepend(cur, escape);
>  }
>  
>  /**
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> enlightenment-svn mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to