fix amalgamation build

SVN revision: 53821
This commit is contained in:
Gustavo Sverzut Barbieri 2010-10-23 20:57:08 +00:00
parent f78379b4d0
commit a528a88fe0
2 changed files with 14 additions and 14 deletions

View File

@ -52,12 +52,12 @@
#ifdef DEBUG #ifdef DEBUG
#include "eina_log.h" #include "eina_log.h"
static int _eina_mempool_log_dom = -1; static int _eina_chained_mp_log_dom = -1;
#ifdef INF #ifdef INF
#undef INF #undef INF
#endif #endif
#define INF(...) EINA_LOG_DOM_INFO(_eina_mempool_log_dom, __VA_ARGS__) #define INF(...) EINA_LOG_DOM_INFO(_eina_chained_mp_log_dom, __VA_ARGS__)
#endif #endif
typedef struct _Chained_Mempool Chained_Mempool; typedef struct _Chained_Mempool Chained_Mempool;
@ -405,9 +405,9 @@ static Eina_Mempool_Backend _eina_chained_mp_backend = {
Eina_Bool chained_init(void) Eina_Bool chained_init(void)
{ {
#ifdef DEBUG #ifdef DEBUG
_eina_mempool_log_dom = eina_log_domain_register("eina_mempool", _eina_chained_mp_log_dom = eina_log_domain_register("eina_mempool",
EINA_LOG_COLOR_DEFAULT); EINA_LOG_COLOR_DEFAULT);
if (_eina_mempool_log_dom < 0) if (_eina_chained_mp_log_dom < 0)
{ {
EINA_LOG_ERR("Could not register log domain: eina_mempool"); EINA_LOG_ERR("Could not register log domain: eina_mempool");
return EINA_FALSE; return EINA_FALSE;
@ -421,8 +421,8 @@ void chained_shutdown(void)
{ {
eina_mempool_unregister(&_eina_chained_mp_backend); eina_mempool_unregister(&_eina_chained_mp_backend);
#ifdef DEBUG #ifdef DEBUG
eina_log_domain_unregister(_eina_mempool_log_dom); eina_log_domain_unregister(_eina_chained_mp_log_dom);
_eina_mempool_log_dom = -1; _eina_chained_mp_log_dom = -1;
#endif #endif
} }

View File

@ -54,9 +54,9 @@
#ifdef WRN #ifdef WRN
#undef WRN #undef WRN
#endif #endif
#define WRN(...) EINA_LOG_DOM_WARN(_eina_mempool_log_dom, __VA_ARGS__) #define WRN(...) EINA_LOG_DOM_WARN(_eina_one_big_mp_log_dom, __VA_ARGS__)
static int _eina_mempool_log_dom = -1; static int _eina_one_big_mp_log_dom = -1;
typedef struct _One_Big One_Big; typedef struct _One_Big One_Big;
struct _One_Big struct _One_Big
@ -374,9 +374,9 @@ static Eina_Mempool_Backend _eina_one_big_mp_backend = {
Eina_Bool one_big_init(void) Eina_Bool one_big_init(void)
{ {
#ifdef DEBUG #ifdef DEBUG
_eina_mempool_log_dom = eina_log_domain_register("eina_one_big_mempool", _eina_one_big_mp_log_dom = eina_log_domain_register("eina_one_big_mempool",
EINA_LOG_COLOR_DEFAULT); EINA_LOG_COLOR_DEFAULT);
if (_eina_mempool_log_dom < 0) if (_eina_one_big_mp_log_dom < 0)
{ {
EINA_LOG_ERR("Could not register log domain: eina_one_big_mempool"); EINA_LOG_ERR("Could not register log domain: eina_one_big_mempool");
return EINA_FALSE; return EINA_FALSE;
@ -390,8 +390,8 @@ void one_big_shutdown(void)
{ {
eina_mempool_unregister(&_eina_one_big_mp_backend); eina_mempool_unregister(&_eina_one_big_mp_backend);
#ifdef DEBUG #ifdef DEBUG
eina_log_domain_unregister(_eina_mempool_log_dom); eina_log_domain_unregister(_eina_one_big_mp_log_dom);
_eina_mempool_log_dom = -1; _eina_one_big_mp_log_dom = -1;
#endif #endif
} }