forked from enlightenment/efl
* allow compilation with vc++
* fix a small warning SVN revision: 42513
This commit is contained in:
parent
49ac7ebc95
commit
c1f402b6fc
|
@ -191,7 +191,7 @@ static void*
|
|||
eina_chained_mempool_init(const char *context, __UNUSED__ const char *option, va_list args)
|
||||
{
|
||||
Chained_Mempool *mp;
|
||||
int length;
|
||||
size_t length;
|
||||
|
||||
length = context ? strlen(context) + 1 : 0;
|
||||
|
||||
|
@ -242,12 +242,14 @@ eina_chained_mempool_shutdown(void *data)
|
|||
}
|
||||
|
||||
static Eina_Mempool_Backend _eina_chained_mp_backend = {
|
||||
.name ="chained_mempool",
|
||||
.init = &eina_chained_mempool_init,
|
||||
.shutdown = &eina_chained_mempool_shutdown,
|
||||
.realloc = &eina_chained_mempool_realloc,
|
||||
.alloc = &eina_chained_mempool_malloc,
|
||||
.free = &eina_chained_mempool_free
|
||||
"chained_mempool",
|
||||
&eina_chained_mempool_init,
|
||||
&eina_chained_mempool_free,
|
||||
&eina_chained_mempool_malloc,
|
||||
&eina_chained_mempool_realloc,
|
||||
NULL,
|
||||
NULL,
|
||||
&eina_chained_mempool_shutdown
|
||||
};
|
||||
|
||||
Eina_Bool chained_init(void)
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#ifndef _MSC_VER
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -204,12 +206,14 @@ eina_fixed_bitmap_shutdown(void *data)
|
|||
}
|
||||
|
||||
static Eina_Mempool_Backend _eina_fixed_bitmap_mp_backend = {
|
||||
.name ="fixed_bitmap",
|
||||
.init = &eina_fixed_bitmap_init,
|
||||
.shutdown = &eina_fixed_bitmap_shutdown,
|
||||
.realloc = &eina_fixed_bitmap_realloc,
|
||||
.alloc = &eina_fixed_bitmap_malloc,
|
||||
.free = &eina_fixed_bitmap_free
|
||||
"fixed_bitmap",
|
||||
&eina_fixed_bitmap_init,
|
||||
&eina_fixed_bitmap_free,
|
||||
&eina_fixed_bitmap_malloc,
|
||||
&eina_fixed_bitmap_realloc,
|
||||
NULL,
|
||||
NULL,
|
||||
&eina_fixed_bitmap_shutdown
|
||||
};
|
||||
|
||||
Eina_Bool fixed_bitmap_init(void)
|
||||
|
|
|
@ -61,14 +61,14 @@ eina_pass_through_shutdown(__UNUSED__ void *data)
|
|||
|
||||
|
||||
static Eina_Mempool_Backend _eina_pass_through_mp_backend = {
|
||||
.name = "pass_through",
|
||||
.init = &eina_pass_through_init,
|
||||
.shutdown = &eina_pass_through_shutdown,
|
||||
.realloc = &eina_pass_through_realloc,
|
||||
.alloc = &eina_pass_through_malloc,
|
||||
.free = &eina_pass_through_free,
|
||||
.garbage_collect = NULL,
|
||||
.statistics = NULL
|
||||
"pass_through",
|
||||
&eina_pass_through_init,
|
||||
&eina_pass_through_free,
|
||||
&eina_pass_through_malloc,
|
||||
&eina_pass_through_realloc,
|
||||
NULL,
|
||||
NULL,
|
||||
&eina_pass_through_shutdown
|
||||
};
|
||||
|
||||
Eina_Bool pass_through_init(void)
|
||||
|
|
Loading…
Reference in New Issue