summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-16 16:00:45 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-16 16:00:45 +0100
commitb1105da1dae316081f34c71df0d5fdd4afabb9f8 (patch)
treef978c04a064bf3334cf6a0757138fb8ebf3800a6 /src
parent35c5e892695ad4e2169003c0dd2a00db8c1679a4 (diff)
eolian: merge internal funcs in database fill
Diffstat (limited to 'src')
-rw-r--r--src/lib/eolian/database_fill.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/src/lib/eolian/database_fill.c b/src/lib/eolian/database_fill.c
index fb4d1bc0db..f98ea8360b 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)
30} 30}
31 31
32static Eina_Bool 32static Eina_Bool
33_get_impl_func(Eolian_Class *cl, Eolian_Implement *impl, Eolian_Function_Type ftype) 33_db_fill_implement(Eolian_Class *cl, Eolian_Implement *impl)
34{ 34{
35 Eolian_Function_Type ftype = EOLIAN_METHOD;
36
37 if (impl->is_prop_get && impl->is_prop_set)
38 ftype = EOLIAN_PROPERTY;
39 else if (impl->is_prop_get)
40 ftype = EOLIAN_PROP_GET;
41 else if (impl->is_prop_set)
42 ftype = EOLIAN_PROP_SET;
43
35 size_t imlen = strlen(impl->full_name); 44 size_t imlen = strlen(impl->full_name);
36 char *clbuf = alloca(imlen + 1); 45 char *clbuf = alloca(imlen + 1);
37 memcpy(clbuf, impl->full_name, imlen + 1); 46 memcpy(clbuf, impl->full_name, imlen + 1);
@@ -122,22 +131,6 @@ _get_impl_func(Eolian_Class *cl, Eolian_Implement *impl, Eolian_Function_Type ft
122 return EINA_TRUE; 131 return EINA_TRUE;
123} 132}
124 133
125
126static Eina_Bool
127_db_fill_implement(Eolian_Class *cl, Eolian_Implement *impl)
128{
129 Eolian_Function_Type ftype = EOLIAN_METHOD;
130
131 if (impl->is_prop_get && impl->is_prop_set)
132 ftype = EOLIAN_PROPERTY;
133 else if (impl->is_prop_get)
134 ftype = EOLIAN_PROP_GET;
135 else if (impl->is_prop_set)
136 ftype = EOLIAN_PROP_SET;
137
138 return _get_impl_func(cl, impl, ftype);
139}
140
141static Eina_Bool 134static Eina_Bool
142_db_fill_implements(Eolian_Class *cl) 135_db_fill_implements(Eolian_Class *cl)
143{ 136{