forked from enlightenment/efl
* fix warning (missing alloca declaration)
* formatting SVN revision: 38657
This commit is contained in:
parent
f0fc27f8de
commit
0d166092ac
|
@ -32,6 +32,23 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#elif defined __GNUC__
|
||||
# define alloca __builtin_alloca
|
||||
#elif defined _AIX
|
||||
# define alloca __alloca
|
||||
#elif defined _MSC_VER
|
||||
# include <malloc.h>
|
||||
# define alloca _alloca
|
||||
#else
|
||||
# include <stddef.h>
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
void *alloca (size_t);
|
||||
#endif
|
||||
|
||||
#include "eina_benchmark.h"
|
||||
#include "eina_inlist.h"
|
||||
#include "eina_counter.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
/*============================================================================*
|
||||
* Local *
|
||||
*============================================================================*/
|
||||
|
||||
static Eina_Hash *_backends;
|
||||
static Eina_Array *_modules;
|
||||
static int _init_count = 0;
|
||||
|
@ -95,6 +96,7 @@ void fixed_bitmap_shutdown(void);
|
|||
/*============================================================================*
|
||||
* Global *
|
||||
*============================================================================*/
|
||||
|
||||
EAPI Eina_Bool eina_mempool_register(Eina_Mempool_Backend *be)
|
||||
{
|
||||
return eina_hash_add(_backends, be->name, be);
|
||||
|
@ -104,6 +106,7 @@ EAPI void eina_mempool_unregister(Eina_Mempool_Backend *be)
|
|||
{
|
||||
eina_hash_del(_backends, be->name, be);
|
||||
}
|
||||
|
||||
/*============================================================================*
|
||||
* API *
|
||||
*============================================================================*/
|
||||
|
|
|
@ -29,6 +29,23 @@
|
|||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#elif defined __GNUC__
|
||||
# define alloca __builtin_alloca
|
||||
#elif defined _AIX
|
||||
# define alloca __alloca
|
||||
#elif defined _MSC_VER
|
||||
# include <malloc.h>
|
||||
# define alloca _alloca
|
||||
#else
|
||||
# include <stddef.h>
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
void *alloca (size_t);
|
||||
#endif
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
#ifdef HAVE_EVIL
|
||||
|
@ -126,9 +143,19 @@ static void _dir_list_cb(const char *name, const char *path, void *data)
|
|||
}
|
||||
}
|
||||
static int _eina_module_count = 0;
|
||||
|
||||
/**
|
||||
* @endcond
|
||||
*/
|
||||
|
||||
/*============================================================================*
|
||||
* Global *
|
||||
*============================================================================*/
|
||||
|
||||
/*============================================================================*
|
||||
* API *
|
||||
*============================================================================*/
|
||||
|
||||
/**
|
||||
* To be documented
|
||||
* FIXME: To be fixed
|
||||
|
|
Loading…
Reference in New Issue