cedric pushed a commit to branch master.

commit ad406d73532daa0437e4428749f9d350e42e234d
Author: Cedric BAIL <[email protected]>
Date:   Fri Mar 29 11:44:48 2013 +0900

    eina: use a global variable to hold the same string accross other library.
---
 src/lib/eina/eina_log.c | 3 +++
 src/lib/eina/eina_log.h | 7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index e66e57e..5e39de6 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -101,6 +101,9 @@ struct _Eina_Log_Timing
    Eina_Log_State state;
 };
 
+EAPI const char *_eina_log_state_init = "init";
+EAPI const char *_eina_log_state_shutdown = "shutdown";
+
 /*
  * List of levels for domains set by the user before the domains are 
registered,
  * updates the domain levels on the first log and clears itself.
diff --git a/src/lib/eina/eina_log.h b/src/lib/eina/eina_log.h
index 40bc3fb..a54b67b 100644
--- a/src/lib/eina/eina_log.h
+++ b/src/lib/eina/eina_log.h
@@ -941,8 +941,11 @@ EAPI void eina_log_print_cb_journald(const Eina_Log_Domain 
*d,
 EAPI void eina_log_console_color_set(FILE *fp,
                                      const char *color) EINA_ARG_NONNULL(1, 2);
 
-#define EINA_LOG_STATE_INIT "init"
-#define EINA_LOG_STATE_SHUTDOWN "shutdown"
+extern EAPI const char *_eina_log_state_init;
+extern EAPI const char *_eina_log_state_shutdown;
+
+#define EINA_LOG_STATE_INIT _eina_log_state_init
+#define EINA_LOG_STATE_SHUTDOWN _eina_log_state_shutdown
 
 /**
  * @brief Start or stop the timing of a phase.

-- 

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2

Reply via email to