summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/eolian/database_function_api.c10
-rw-r--r--src/tests/eolian/data/docs.eo1
2 files changed, 4 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);
diff --git a/src/tests/eolian/data/docs.eo b/src/tests/eolian/data/docs.eo
index c99c008136..1f48af5a88 100644
--- a/src/tests/eolian/data/docs.eo
+++ b/src/tests/eolian/data/docs.eo
@@ -53,6 +53,7 @@ class Docs {
53 53
54 @since 1.18 54 @since 1.18
55 ]] 55 ]]
56 legacy_prefix: docs;
56 methods { 57 methods {
57 meth { 58 meth {
58 [[Method documentation.]] 59 [[Method documentation.]]