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)
|
eina_chained_mempool_init(const char *context, __UNUSED__ const char *option, va_list args)
|
||||||
{
|
{
|
||||||
Chained_Mempool *mp;
|
Chained_Mempool *mp;
|
||||||
int length;
|
size_t length;
|
||||||
|
|
||||||
length = context ? strlen(context) + 1 : 0;
|
length = context ? strlen(context) + 1 : 0;
|
||||||
|
|
||||||
|
@ -242,12 +242,14 @@ eina_chained_mempool_shutdown(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Mempool_Backend _eina_chained_mp_backend = {
|
static Eina_Mempool_Backend _eina_chained_mp_backend = {
|
||||||
.name ="chained_mempool",
|
"chained_mempool",
|
||||||
.init = &eina_chained_mempool_init,
|
&eina_chained_mempool_init,
|
||||||
.shutdown = &eina_chained_mempool_shutdown,
|
&eina_chained_mempool_free,
|
||||||
.realloc = &eina_chained_mempool_realloc,
|
&eina_chained_mempool_malloc,
|
||||||
.alloc = &eina_chained_mempool_malloc,
|
&eina_chained_mempool_realloc,
|
||||||
.free = &eina_chained_mempool_free
|
NULL,
|
||||||
|
NULL,
|
||||||
|
&eina_chained_mempool_shutdown
|
||||||
};
|
};
|
||||||
|
|
||||||
Eina_Bool chained_init(void)
|
Eina_Bool chained_init(void)
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#ifndef _MSC_VER
|
||||||
|
# include <stdint.h>
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
@ -204,12 +206,14 @@ eina_fixed_bitmap_shutdown(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Mempool_Backend _eina_fixed_bitmap_mp_backend = {
|
static Eina_Mempool_Backend _eina_fixed_bitmap_mp_backend = {
|
||||||
.name ="fixed_bitmap",
|
"fixed_bitmap",
|
||||||
.init = &eina_fixed_bitmap_init,
|
&eina_fixed_bitmap_init,
|
||||||
.shutdown = &eina_fixed_bitmap_shutdown,
|
&eina_fixed_bitmap_free,
|
||||||
.realloc = &eina_fixed_bitmap_realloc,
|
&eina_fixed_bitmap_malloc,
|
||||||
.alloc = &eina_fixed_bitmap_malloc,
|
&eina_fixed_bitmap_realloc,
|
||||||
.free = &eina_fixed_bitmap_free
|
NULL,
|
||||||
|
NULL,
|
||||||
|
&eina_fixed_bitmap_shutdown
|
||||||
};
|
};
|
||||||
|
|
||||||
Eina_Bool fixed_bitmap_init(void)
|
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 = {
|
static Eina_Mempool_Backend _eina_pass_through_mp_backend = {
|
||||||
.name = "pass_through",
|
"pass_through",
|
||||||
.init = &eina_pass_through_init,
|
&eina_pass_through_init,
|
||||||
.shutdown = &eina_pass_through_shutdown,
|
&eina_pass_through_free,
|
||||||
.realloc = &eina_pass_through_realloc,
|
&eina_pass_through_malloc,
|
||||||
.alloc = &eina_pass_through_malloc,
|
&eina_pass_through_realloc,
|
||||||
.free = &eina_pass_through_free,
|
NULL,
|
||||||
.garbage_collect = NULL,
|
NULL,
|
||||||
.statistics = NULL
|
&eina_pass_through_shutdown
|
||||||
};
|
};
|
||||||
|
|
||||||
Eina_Bool pass_through_init(void)
|
Eina_Bool pass_through_init(void)
|
||||||
|
|
Loading…
Reference in New Issue