* fix warning (missing alloca declaration)

* formatting


SVN revision: 38657
This commit is contained in:
Vincent Torri 2009-01-20 08:29:41 +00:00
parent f0fc27f8de
commit 0d166092ac
3 changed files with 48 additions and 1 deletions

View File

@ -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"

View File

@ -34,6 +34,7 @@
/*============================================================================*
* Local *
*============================================================================*/
static Eina_Hash *_backends;
static Eina_Array *_modules;
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 *mp;
Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE;
eina_error_set(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 *
*============================================================================*/

View File

@ -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