summaryrefslogtreecommitdiff
path: root/src/lib/embryo
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 15:10:34 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 15:10:34 +0000
commit0a2d116119e365c8fbf6324f02f94c3f89fb864a (patch)
treef43b26d7600f0a8192fd64873938866afdb1ae3d /src/lib/embryo
parentc1d576dcc7fa9485de73f60a7d886e100ad9e147 (diff)
efl: eina_alloca.h to simplify alloca() usage.
having to replicate 18 lines per file just to access alloca() is insane. Let's do that in Eina.h and avoid that crap :-/ SVN revision: 82082
Diffstat (limited to 'src/lib/embryo')
-rw-r--r--src/lib/embryo/embryo_args.c17
-rw-r--r--src/lib/embryo/embryo_str.c17
2 files changed, 0 insertions, 34 deletions
diff --git a/src/lib/embryo/embryo_args.c b/src/lib/embryo/embryo_args.c
index e9cef2bb25..c0682e6353 100644
--- a/src/lib/embryo/embryo_args.c
+++ b/src/lib/embryo/embryo_args.c
@@ -2,23 +2,6 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#ifdef HAVE_ALLOCA_H
6# include <alloca.h>
7#elif defined __GNUC__
8# define alloca __builtin_alloca
9#elif defined _AIX
10# define alloca __alloca
11#elif defined _MSC_VER
12# include <malloc.h>
13# define alloca _alloca
14#else
15# include <stddef.h>
16# ifdef __cplusplus
17extern "C"
18# endif
19void *alloca (size_t);
20#endif
21
22#include <Eina.h> 5#include <Eina.h>
23 6
24#include "Embryo.h" 7#include "Embryo.h"
diff --git a/src/lib/embryo/embryo_str.c b/src/lib/embryo/embryo_str.c
index 0c2faa2d15..3f180cef00 100644
--- a/src/lib/embryo/embryo_str.c
+++ b/src/lib/embryo/embryo_str.c
@@ -10,23 +10,6 @@
10# include <stdlib.h> 10# include <stdlib.h>
11# endif 11# endif
12#endif 12#endif
13#ifdef HAVE_ALLOCA_H
14# include <alloca.h>
15#elif !defined alloca
16# ifdef __GNUC__
17# define alloca __builtin_alloca
18# elif defined _AIX
19# define alloca __alloca
20# elif defined _MSC_VER
21# include <malloc.h>
22# define alloca _alloca
23# elif !defined HAVE_ALLOCA
24# ifdef __cplusplus
25extern "C"
26# endif
27void *alloca (size_t);
28# endif
29#endif
30 13
31#ifdef HAVE_EXOTIC 14#ifdef HAVE_EXOTIC
32# include <Exotic.h> 15# include <Exotic.h>