Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_embryo.c 


Log Message:
the custom state code was still using strdup, but it needs to use the 
stringshare api
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_embryo.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- edje_embryo.c       30 Nov 2005 09:56:14 -0000      1.48
+++ edje_embryo.c       25 Feb 2006 09:56:09 -0000      1.49
@@ -1514,7 +1514,7 @@
 
    *d = *parent;
 
-   d->state.name = strdup("custom");
+   d->state.name = evas_stringshare_add("custom");
    d->state.value = 0.0;
 
    /* make sure all the allocated memory is getting copied,
@@ -1532,12 +1532,12 @@
        d->image.tween_list = evas_list_append(d->image.tween_list, iid_new);
      }
 
-#define STRDUP(x) x ? strdup(x) : NULL
-   d->color_class = STRDUP(d->color_class);
-   d->text.text = STRDUP(d->text.text);
-   d->text.text_class = STRDUP(d->text.text_class);
-   d->text.font = STRDUP(d->text.font);
-#undef STRDUP
+#define DUP(x) x ? evas_stringshare_add(x) : NULL
+   d->color_class = DUP(d->color_class);
+   d->text.text = DUP(d->text.text);
+   d->text.text_class = DUP(d->text.text_class);
+   d->text.font = DUP(d->text.font);
+#undef DUP
 
    rp->custom.description = d;
 




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to