summaryrefslogtreecommitdiff
path: root/src/bin/eolian/headers.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-19 14:46:40 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-19 15:09:07 +0100
commit95181f2d36c0c10805bb5deaf1d4e0c52c41afb0 (patch)
treebeb25617b9c83682a05710f7f8d2233a9257955a /src/bin/eolian/headers.c
parent67bbb685d42536a9613315e52349bdbcb3dbc293 (diff)
eolian: move base function doc API into implements
This allows us to unify retrieval of docs for both regular and overridden funcs without having two separate APIs. It's currently missing validation and docgen is still not adjusted properly for it either, but at least there's this. Enables retrieval of docs for overridden funcs by default as well.
Diffstat (limited to 'src/bin/eolian/headers.c')
-rw-r--r--src/bin/eolian/headers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 564eb4f..853b867 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -42,9 +42,11 @@ _gen_func(const Eolian_Function *fid, Eolian_Function_Type ftype,
42 if (!legacy && (fsc == EOLIAN_SCOPE_PROTECTED)) 42 if (!legacy && (fsc == EOLIAN_SCOPE_PROTECTED))
43 eina_strbuf_append_printf(buf, "#ifdef %s_PROTECTED\n", cnameu); 43 eina_strbuf_append_printf(buf, "#ifdef %s_PROTECTED\n", cnameu);
44 44
45 Eina_Bool hasdoc = !!eolian_function_documentation_get(fid, ftype); 45 const Eolian_Implement *fimp = eolian_function_implement_get(fid);
46
47 Eina_Bool hasdoc = !!eolian_implement_documentation_get(fimp, ftype);
46 if (!hasdoc && ((ftype == EOLIAN_PROP_GET) || (ftype == EOLIAN_PROP_SET))) 48 if (!hasdoc && ((ftype == EOLIAN_PROP_GET) || (ftype == EOLIAN_PROP_SET)))
47 hasdoc = !!eolian_function_documentation_get(fid, EOLIAN_PROPERTY); 49 hasdoc = !!eolian_implement_documentation_get(fimp, EOLIAN_PROPERTY);
48 if (hasdoc) 50 if (hasdoc)
49 { 51 {
50 Eina_Strbuf *dbuf = eo_gen_docs_func_gen(fid, ftype, 0, legacy); 52 Eina_Strbuf *dbuf = eo_gen_docs_func_gen(fid, ftype, 0, legacy);