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 <stdio.h>
|
||||||
#include <string.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_benchmark.h"
|
||||||
#include "eina_inlist.h"
|
#include "eina_inlist.h"
|
||||||
#include "eina_counter.h"
|
#include "eina_counter.h"
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Local *
|
* Local *
|
||||||
*============================================================================*/
|
*============================================================================*/
|
||||||
|
|
||||||
static Eina_Hash *_backends;
|
static Eina_Hash *_backends;
|
||||||
static Eina_Array *_modules;
|
static Eina_Array *_modules;
|
||||||
static int _init_count = 0;
|
static int _init_count = 0;
|
||||||
|
@ -43,7 +44,7 @@ _new_from_buffer(const char *name, const char *context, const char *options, va_
|
||||||
{
|
{
|
||||||
Eina_Mempool_Backend *be;
|
Eina_Mempool_Backend *be;
|
||||||
Eina_Mempool *mp;
|
Eina_Mempool *mp;
|
||||||
|
|
||||||
Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE;
|
Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE;
|
||||||
|
|
||||||
eina_error_set(0);
|
eina_error_set(0);
|
||||||
|
@ -95,6 +96,7 @@ void fixed_bitmap_shutdown(void);
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* Global *
|
* Global *
|
||||||
*============================================================================*/
|
*============================================================================*/
|
||||||
|
|
||||||
EAPI Eina_Bool eina_mempool_register(Eina_Mempool_Backend *be)
|
EAPI Eina_Bool eina_mempool_register(Eina_Mempool_Backend *be)
|
||||||
{
|
{
|
||||||
return eina_hash_add(_backends, be->name, 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);
|
eina_hash_del(_backends, be->name, be);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* API *
|
* API *
|
||||||
*============================================================================*/
|
*============================================================================*/
|
||||||
|
|
|
@ -29,6 +29,23 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <string.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>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
#ifdef HAVE_EVIL
|
#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;
|
static int _eina_module_count = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endcond
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*============================================================================*
|
||||||
|
* Global *
|
||||||
|
*============================================================================*/
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
* API *
|
* API *
|
||||||
*============================================================================*/
|
*============================================================================*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To be documented
|
* To be documented
|
||||||
* FIXME: To be fixed
|
* FIXME: To be fixed
|
||||||
|
|
Loading…
Reference in New Issue