aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/src/bin/edje_cc_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/edje/src/bin/edje_cc_mem.c')
-rw-r--r--libraries/edje/src/bin/edje_cc_mem.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/libraries/edje/src/bin/edje_cc_mem.c b/libraries/edje/src/bin/edje_cc_mem.c
deleted file mode 100644
index d2d4ae0..0000000
--- a/libraries/edje/src/bin/edje_cc_mem.c
+++ /dev/null
@@ -1,34 +0,0 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#include <string.h>
6#include <errno.h>
7
8#include "edje_cc.h"
9
10void *
11mem_alloc(size_t size)
12{
13 void *mem;
14
15 mem = calloc(1, size);
16 if (mem) return mem;
17 ERR("%s: Error. %s:%i memory allocation of %zu bytes failed. %s",
18 progname, file_in, line, size, strerror(errno));
19 exit(-1);
20 return NULL;
21}
22
23char *
24mem_strdup(const char *s)
25{
26 void *str;
27
28 str = strdup(s);
29 if (str) return str;
30 ERR("%s: Error. %s:%i memory allocation of %zu bytes failed. %s. string being duplicated: \"%s\"",
31 progname, file_in, line, strlen(s) + 1, strerror(errno), s);
32 exit(-1);
33 return NULL;
34}