Enlightenment SVN wrote:
> Log:
> * rename mem_strdup() to not clash (in the case of a static build) with
> the one defined in bin/
> Author: davemds
> Date: 2009-08-17 06:54:17 -0700 (Mon, 17 Aug 2009)
> New Revision: 41839
>
> Modified:
> trunk/edje/src/lib/edje_edit.c
>
> Modified: trunk/edje/src/lib/edje_edit.c
> ===================================================================
> --- trunk/edje/src/lib/edje_edit.c 2009-08-17 11:32:56 UTC (rev 41838)
> +++ trunk/edje/src/lib/edje_edit.c 2009-08-17 13:54:17 UTC (rev 41839)
> @@ -56,29 +56,27 @@
> epr = _edje_program_get_byname(obj, prog); \
> if (!epr) return RET;
>
> -void *
> -mem_alloc(size_t size)
> +static void *
> +_alloc(size_t size)
> {
> void *mem;
>
> mem = calloc(1, size);
> if (mem) return mem;
> fprintf(stderr, "Edje_Edit: Error. memory allocation of %i bytes failed.
> %s\n",
> - size, strerror(errno));
> - exit(-1);
> + (int)size, strerror(errno));
> return NULL;
> }
>
> -char *
> -mem_strdup(const char *s)
> +static char *
> +_strdup(const char *s)
> {
> void *str;
>
I don't think it's wise to name a function _strdup(), afaik it is used
in the windows libc.
Peter
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel