summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eolian/database_function_api.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/eolian/database_function_api.c b/src/lib/eolian/database_function_api.c
index 31bc862775..586cb75b59 100644
--- a/src/lib/eolian/database_function_api.c
+++ b/src/lib/eolian/database_function_api.c
@@ -30,13 +30,9 @@ static const char *
30_get_eo_prefix(const Eolian_Function *foo_id, char *buf, Eina_Bool use_legacy) 30_get_eo_prefix(const Eolian_Function *foo_id, char *buf, Eina_Bool use_legacy)
31{ 31{
32 char *tmp = buf; 32 char *tmp = buf;
33 if (use_legacy && foo_id->klass->legacy_prefix) 33 if (use_legacy)
34 { 34 return foo_id->klass->legacy_prefix;
35 if (!strcmp(foo_id->klass->legacy_prefix, "null")) 35 else if (foo_id->klass->eo_prefix)
36 return NULL;
37 return foo_id->klass->legacy_prefix;
38 }
39 else if (!use_legacy && foo_id->klass->eo_prefix)
40 return foo_id->klass->eo_prefix; 36 return foo_id->klass->eo_prefix;
41 strcpy(buf, foo_id->klass->full_name); 37 strcpy(buf, foo_id->klass->full_name);
42 eina_str_tolower(&buf); 38 eina_str_tolower(&buf);