eolian: do not generate legacy without explicit class legacy_prefix

This commit is contained in:
Daniel Kolesa 2016-05-12 16:28:19 +01:00 committed by Tom Hacohen
parent 59f222bc0a
commit 1a0566452f
2 changed files with 4 additions and 7 deletions

View File

@ -30,13 +30,9 @@ static const char *
_get_eo_prefix(const Eolian_Function *foo_id, char *buf, Eina_Bool use_legacy)
{
char *tmp = buf;
if (use_legacy && foo_id->klass->legacy_prefix)
{
if (!strcmp(foo_id->klass->legacy_prefix, "null"))
return NULL;
return foo_id->klass->legacy_prefix;
}
else if (!use_legacy && foo_id->klass->eo_prefix)
if (use_legacy)
return foo_id->klass->legacy_prefix;
else if (foo_id->klass->eo_prefix)
return foo_id->klass->eo_prefix;
strcpy(buf, foo_id->klass->full_name);
eina_str_tolower(&buf);

View File

@ -53,6 +53,7 @@ class Docs {
@since 1.18
]]
legacy_prefix: docs;
methods {
meth {
[[Method documentation.]]