q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2998da56e3e39be30dc2e5572d047bb1fbeff1e9

commit 2998da56e3e39be30dc2e5572d047bb1fbeff1e9
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Tue Feb 16 15:13:02 2016 +0000

    eolian: verbose type warnings for EFL by default
---
 src/Makefile_Eolian_Helper.am      | 4 ++--
 src/lib/eolian/database_validate.c | 6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/Makefile_Eolian_Helper.am b/src/Makefile_Eolian_Helper.am
index f9c2066..22b09d6 100644
--- a/src/Makefile_Eolian_Helper.am
+++ b/src/Makefile_Eolian_Helper.am
@@ -20,12 +20,12 @@ SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h .eot .eot.h
 %.eo.h: %.eo ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
        $(MKDIR_P) $(dir $@); \
-       $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
+       EOLIAN_VERBOSE_TYPES=1 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
 
 %.eot.h: %.eot ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
        $(MKDIR_P) $(dir $@); \
-       $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
+       EOLIAN_VERBOSE_TYPES=1 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
 
 %.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
diff --git a/src/lib/eolian/database_validate.c 
b/src/lib/eolian/database_validate.c
index 82eba49..381564d 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -176,6 +176,12 @@ _type_error(const Validator *vs, const Eolian_Type *tp, 
const char *msg)
 {
    if (vs->silent_types)
      return EINA_FALSE;
+   if (getenv("EOLIAN_VERBOSE_TYPES"))
+     {
+        fprintf(stderr, "eolian:%s:%d:%d: %s\n", tp->base.file, tp->base.line,
+                tp->base.column, msg);
+        return EINA_FALSE;
+     }
    eina_log_print(_eolian_log_dom, EINA_LOG_LEVEL_WARN, tp->base.file, "",
                   tp->base.line, "%s at column %d", msg, tp->base.column);
    return EINA_FALSE;

-- 


Reply via email to