On Thu, 12 Aug 2010, Enlightenment SVN wrote:
> Log: > Eina: "FIX" EINA_UNICODE_EMPTY_STRING. > Author: tasn > Date: 2010-08-12 07:16:32 -0700 (Thu, 12 Aug 2010) > New Revision: 51038 > > Modified: > trunk/eina/src/lib/eina_unicode.c > > Modified: trunk/eina/src/lib/eina_unicode.c > =================================================================== > --- trunk/eina/src/lib/eina_unicode.c 2010-08-12 13:26:09 UTC (rev 51037) > +++ trunk/eina/src/lib/eina_unicode.c 2010-08-12 14:16:32 UTC (rev 51038) > @@ -24,7 +24,9 @@ > /* FIXME: check if sizeof(wchar_t) == sizeof(Eina_Unicode) if so, > * probably better to use the standard functions */ > > -EAPI const Eina_Unicode *EINA_UNICODE_EMPTY_STRING = {0}; why not setting it to NULL and considering NULL as the empty string ? Vincent > +/* Maybe I'm too tired, but this is the only thing that actually worked. */ > +const Eina_Unicode _EINA_UNICODE_EMPTY_STRING[1] = {0}; > +EAPI const Eina_Unicode *EINA_UNICODE_EMPTY_STRING = > _EINA_UNICODE_EMPTY_STRING; > /** > * @brief Same as the standard strcmp just with Eina_Unicode instead of char. > */ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel