Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet/src/lib


Modified Files:
        eet_data.c 


Log Message:


that was a misdirected optimisation. remove.

===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/eet_data.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- eet_data.c  9 Sep 2007 01:46:47 -0000       1.51
+++ eet_data.c  9 Sep 2007 02:00:45 -0000       1.52
@@ -225,7 +225,6 @@
    d = (char *)malloc(sizeof(char));
    if (!d) return NULL;
    s = (char *)src;
-//   if (*s == 0) return NULL;
    *d = *s;
    CONV8(*d);
    *size_ret = sizeof(char);
@@ -253,7 +252,6 @@
    d = (short *)malloc(sizeof(short));
    if (!d) return NULL;
    s = (short *)src;
-//   if (*s == 0) return NULL;
    *d = *s;
    CONV16(*d);
    *size_ret = sizeof(short);
@@ -281,7 +279,6 @@
    d = (int *)malloc(sizeof(int));
    if (!d) return NULL;
    s = (int *)src;
-//   if (*s == 0) return NULL;
    *d = *s;
    CONV32(*d);
    *size_ret = sizeof(int);
@@ -309,7 +306,6 @@
    d = (unsigned long long *)malloc(sizeof(unsigned long long));
    if (!d) return NULL;
    s = (unsigned long long *)src;
-//   if (*s == 0) return NULL;
    *d = *s;
    CONV64(*d);
    *size_ret = sizeof(unsigned long long);
@@ -349,7 +345,6 @@
 
    s = (char *)(*((char **)src));
    if (!s) return NULL;
-//   if (!s) s = (char *)empty_s;
    len = strlen(s);
    d = malloc(len + 1);
    if (!d) return NULL;
@@ -394,7 +389,6 @@
    int len;
 
    s = (float *)src;
-//   if (*s == 0.0) return NULL;
    prev_locale = setlocale(LC_NUMERIC, "C");
    snprintf(buf, sizeof(buf), "%a", (double)(*s));
    if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
@@ -442,7 +436,6 @@
    int len;
 
    s = (double *)src;
-//   if (*s == 0.0) return NULL;
    prev_locale = setlocale(LC_NUMERIC, "C");
    snprintf(buf, sizeof(buf), "%a", (double)(*s));
    if (prev_locale) setlocale(LC_NUMERIC, prev_locale);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to