aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/eolian
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
parentgstreamer buffer unref emotion: too many urefs! Seems I read the documention ... (diff)
downloadefl-95181f2d36c0c10805bb5deaf1d4e0c52c41afb0.tar.gz
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')
-rw-r--r--src/bin/eolian/docs.c8
-rw-r--r--src/bin/eolian/headers.c6
2 files changed, 9 insertions, 5 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 0bfbe7fd0d..1e89b550f4 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -417,15 +417,17 @@ eo_gen_docs_func_gen(const Eolian_Function *fid, Eolian_Function_Type ftype,
const char *group = eolian_class_full_name_get(eolian_function_class_get(fid));
+ const Eolian_Implement *fimp = eolian_function_implement_get(fid);
+
if (ftype == EOLIAN_METHOD)
{
- doc = eolian_function_documentation_get(fid, EOLIAN_METHOD);
+ doc = eolian_implement_documentation_get(fimp, EOLIAN_METHOD);
pdoc = NULL;
}
else
{
- doc = eolian_function_documentation_get(fid, EOLIAN_PROPERTY);
- pdoc = eolian_function_documentation_get(fid, ftype);
+ doc = eolian_implement_documentation_get(fimp, EOLIAN_PROPERTY);
+ pdoc = eolian_implement_documentation_get(fimp, ftype);
if (!doc && pdoc) doc = pdoc;
if (pdoc == doc) pdoc = NULL;
}
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 564eb4f938..853b8672e8 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,
if (!legacy && (fsc == EOLIAN_SCOPE_PROTECTED))
eina_strbuf_append_printf(buf, "#ifdef %s_PROTECTED\n", cnameu);
- Eina_Bool hasdoc = !!eolian_function_documentation_get(fid, ftype);
+ const Eolian_Implement *fimp = eolian_function_implement_get(fid);
+
+ Eina_Bool hasdoc = !!eolian_implement_documentation_get(fimp, ftype);
if (!hasdoc && ((ftype == EOLIAN_PROP_GET) || (ftype == EOLIAN_PROP_SET)))
- hasdoc = !!eolian_function_documentation_get(fid, EOLIAN_PROPERTY);
+ hasdoc = !!eolian_implement_documentation_get(fimp, EOLIAN_PROPERTY);
if (hasdoc)
{
Eina_Strbuf *dbuf = eo_gen_docs_func_gen(fid, ftype, 0, legacy);