summaryrefslogtreecommitdiff
path: root/legacy/edje/src/bin/edje_cc_mem.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-02-18 14:45:21 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-02-18 14:45:21 +0000
commitb0a4783e2248a49e11db74a5f58e0452167d17d2 (patch)
tree6babea4d9431fc912835ad9923112dbefb8511ae /legacy/edje/src/bin/edje_cc_mem.c
parent52752392b1b24769e82a73d0c928bb04de38e69d (diff)
Edje: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family functions
SVN revision: 68110
Diffstat (limited to 'legacy/edje/src/bin/edje_cc_mem.c')
-rw-r--r--legacy/edje/src/bin/edje_cc_mem.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/legacy/edje/src/bin/edje_cc_mem.c b/legacy/edje/src/bin/edje_cc_mem.c
index 7c1a5c9b60..d2d4ae04cc 100644
--- a/legacy/edje/src/bin/edje_cc_mem.c
+++ b/legacy/edje/src/bin/edje_cc_mem.c
@@ -7,12 +7,6 @@
7 7
8#include "edje_cc.h" 8#include "edje_cc.h"
9 9
10#ifdef _WIN32
11# define FMT_SIZE_T "%Iu"
12#else
13# define FMT_SIZE_T "%zu"
14#endif
15
16void * 10void *
17mem_alloc(size_t size) 11mem_alloc(size_t size)
18{ 12{
@@ -20,7 +14,7 @@ mem_alloc(size_t size)
20 14
21 mem = calloc(1, size); 15 mem = calloc(1, size);
22 if (mem) return mem; 16 if (mem) return mem;
23 ERR("%s: Error. %s:%i memory allocation of " FMT_SIZE_T " bytes failed. %s", 17 ERR("%s: Error. %s:%i memory allocation of %zu bytes failed. %s",
24 progname, file_in, line, size, strerror(errno)); 18 progname, file_in, line, size, strerror(errno));
25 exit(-1); 19 exit(-1);
26 return NULL; 20 return NULL;
@@ -33,7 +27,7 @@ mem_strdup(const char *s)
33 27
34 str = strdup(s); 28 str = strdup(s);
35 if (str) return str; 29 if (str) return str;
36 ERR("%s: Error. %s:%i memory allocation of " FMT_SIZE_T " bytes failed. %s. string being duplicated: \"%s\"", 30 ERR("%s: Error. %s:%i memory allocation of %zu bytes failed. %s. string being duplicated: \"%s\"",
37 progname, file_in, line, strlen(s) + 1, strerror(errno), s); 31 progname, file_in, line, strlen(s) + 1, strerror(errno), s);
38 exit(-1); 32 exit(-1);
39 return NULL; 33 return NULL;