eolian: support for class type in c_type_get
authorDaniel Kolesa <d.kolesa@samsung.com>
Wed, 30 Jul 2014 15:38:23 +0000 (16:38 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Thu, 21 Aug 2014 08:26:02 +0000 (09:26 +0100)
src/lib/eolian/database_type.c

index cfb8bc7..d3d2037 100644 (file)
@@ -155,7 +155,7 @@ database_type_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
      {
         eina_strbuf_append(buf, "const ");
      }
-   if (tp->type == EOLIAN_TYPE_REGULAR || tp->type == EOLIAN_TYPE_CLASS)
+   if (tp->type == EOLIAN_TYPE_REGULAR)
      {
         Eina_List *l;
         const char *sp;
@@ -173,6 +173,8 @@ database_type_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
      }
    else if (tp->type == EOLIAN_TYPE_VOID)
      eina_strbuf_append(buf, "void");
+   else if (tp->type == EOLIAN_TYPE_CLASS)
+     eina_strbuf_append(buf, "Eo");
    else
      {
         Eolian_Type *btp = tp->base_type;