From b1105da1dae316081f34c71df0d5fdd4afabb9f8 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 16 Jan 2017 16:00:45 +0100 Subject: [PATCH] eolian: merge internal funcs in database fill --- src/lib/eolian/database_fill.c | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/src/lib/eolian/database_fill.c b/src/lib/eolian/database_fill.c index fb4d1bc..f98ea83 100644 --- a/src/lib/eolian/database_fill.c +++ b/src/lib/eolian/database_fill.c @@ -30,8 +30,17 @@ _print_linecol(const Eolian_Object *base) } static Eina_Bool -_get_impl_func(Eolian_Class *cl, Eolian_Implement *impl, Eolian_Function_Type ftype) +_db_fill_implement(Eolian_Class *cl, Eolian_Implement *impl) { + Eolian_Function_Type ftype = EOLIAN_METHOD; + + if (impl->is_prop_get && impl->is_prop_set) + ftype = EOLIAN_PROPERTY; + else if (impl->is_prop_get) + ftype = EOLIAN_PROP_GET; + else if (impl->is_prop_set) + ftype = EOLIAN_PROP_SET; + size_t imlen = strlen(impl->full_name); char *clbuf = alloca(imlen + 1); memcpy(clbuf, impl->full_name, imlen + 1); @@ -122,22 +131,6 @@ _get_impl_func(Eolian_Class *cl, Eolian_Implement *impl, Eolian_Function_Type ft return EINA_TRUE; } - -static Eina_Bool -_db_fill_implement(Eolian_Class *cl, Eolian_Implement *impl) -{ - Eolian_Function_Type ftype = EOLIAN_METHOD; - - if (impl->is_prop_get && impl->is_prop_set) - ftype = EOLIAN_PROPERTY; - else if (impl->is_prop_get) - ftype = EOLIAN_PROP_GET; - else if (impl->is_prop_set) - ftype = EOLIAN_PROP_SET; - - return _get_impl_func(cl, impl, ftype); -} - static Eina_Bool _db_fill_implements(Eolian_Class *cl) { -- 2.7.4