eolian: enable the new doc validator
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 8 Jul 2015 14:51:05 +0000 (15:51 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 8 Jul 2015 14:51:29 +0000 (15:51 +0100)
This will make Eolian error when the input documentation
is in a wrong format.

src/lib/eolian/database_validate.c

index d3c4425..ecfeba6 100644 (file)
@@ -9,7 +9,6 @@
 static Eina_Bool
 _validate_ref(const char *ref, const Eolian_Object *info)
 {
-#if 0
    if (eolian_declaration_get_by_name(ref))
      return EINA_TRUE;
 
@@ -75,11 +74,7 @@ _validate_ref(const char *ref, const Eolian_Object *info)
 failed:
    fprintf(stderr, "eolian:%s:%d:%d: failed validating reference '%s'\n",
        info->file, info->line, info->column, ref);
-#else
-   (void)ref;
-   (void)info;
-#endif
-   return EINA_TRUE;
+   return EINA_FALSE;
 }
 
 static Eina_Bool