summaryrefslogtreecommitdiff
path: root/src/bin/eolian/types_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-14 14:30:41 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-14 14:42:11 +0100
commit8ed6417196c6d69fd546049c717cd182125bacca (patch)
treec36ebfd198f2317d00dce6f289332c465d527565 /src/bin/eolian/types_generator.c
parent74ad947ded6e1f3631d7c11cc6316aaf2c104391 (diff)
eolian/generator: generate @ingroup in doc comments properly
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/types_generator.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 7a032ef27e..5fee46b729 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -36,7 +36,12 @@ _concat_name(const Eolian_Type *tp)
36static Eina_Strbuf * 36static Eina_Strbuf *
37_type_generate(const Eolian_Type *tp, Eina_Bool full, Eina_Bool use_legacy) 37_type_generate(const Eolian_Type *tp, Eina_Bool full, Eina_Bool use_legacy)
38{ 38{
39 Eina_Strbuf *buf = docs_generate_full(eolian_type_documentation_get(tp), 0, use_legacy); 39 char *grp = strdup(eolian_type_full_name_get(tp));
40 char *p = strrchr(grp, '.');
41 if (p) *p = '\0';
42 Eina_Strbuf *buf = docs_generate_full(eolian_type_documentation_get(tp),
43 grp, 0, use_legacy);
44 free(grp);
40 if (!buf) buf = eina_strbuf_new(); 45 if (!buf) buf = eina_strbuf_new();
41 else eina_strbuf_append_char(buf, '\n'); 46 else eina_strbuf_append_char(buf, '\n');
42 Eolian_Type_Type tp_type = eolian_type_type_get(tp); 47 Eolian_Type_Type tp_type = eolian_type_type_get(tp);
@@ -79,7 +84,7 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full, Eina_Bool use_legacy)
79 const char *nl = strrchr(eina_strbuf_string_get(buf), '\n'); 84 const char *nl = strrchr(eina_strbuf_string_get(buf), '\n');
80 if (nl) 85 if (nl)
81 { 86 {
82 Eina_Strbuf *fbuf = docs_generate_full(fdoc, strlen(nl), use_legacy); 87 Eina_Strbuf *fbuf = docs_generate_full(fdoc, NULL, strlen(nl), use_legacy);
83 if (fbuf) 88 if (fbuf)
84 eina_strbuf_append_printf(buf, " %s", 89 eina_strbuf_append_printf(buf, " %s",
85 eina_strbuf_string_get(fbuf)); 90 eina_strbuf_string_get(fbuf));
@@ -145,7 +150,7 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full, Eina_Bool use_legacy)
145 const char *nl = strrchr(eina_strbuf_string_get(buf), '\n'); 150 const char *nl = strrchr(eina_strbuf_string_get(buf), '\n');
146 if (nl) 151 if (nl)
147 { 152 {
148 Eina_Strbuf *fbuf = docs_generate_full(fdoc, strlen(nl), use_legacy); 153 Eina_Strbuf *fbuf = docs_generate_full(fdoc, NULL, strlen(nl), use_legacy);
149 if (fbuf) 154 if (fbuf)
150 eina_strbuf_append_printf(buf, " %s", 155 eina_strbuf_append_printf(buf, " %s",
151 eina_strbuf_string_get(fbuf)); 156 eina_strbuf_string_get(fbuf));