eolian: do not generate legacy without explicit class legacy_prefix
This commit is contained in:
parent
59f222bc0a
commit
1a0566452f
|
@ -30,13 +30,9 @@ static const char *
|
||||||
_get_eo_prefix(const Eolian_Function *foo_id, char *buf, Eina_Bool use_legacy)
|
_get_eo_prefix(const Eolian_Function *foo_id, char *buf, Eina_Bool use_legacy)
|
||||||
{
|
{
|
||||||
char *tmp = buf;
|
char *tmp = buf;
|
||||||
if (use_legacy && foo_id->klass->legacy_prefix)
|
if (use_legacy)
|
||||||
{
|
return foo_id->klass->legacy_prefix;
|
||||||
if (!strcmp(foo_id->klass->legacy_prefix, "null"))
|
else if (foo_id->klass->eo_prefix)
|
||||||
return NULL;
|
|
||||||
return foo_id->klass->legacy_prefix;
|
|
||||||
}
|
|
||||||
else if (!use_legacy && foo_id->klass->eo_prefix)
|
|
||||||
return foo_id->klass->eo_prefix;
|
return foo_id->klass->eo_prefix;
|
||||||
strcpy(buf, foo_id->klass->full_name);
|
strcpy(buf, foo_id->klass->full_name);
|
||||||
eina_str_tolower(&buf);
|
eina_str_tolower(&buf);
|
||||||
|
|
|
@ -53,6 +53,7 @@ class Docs {
|
||||||
|
|
||||||
@since 1.18
|
@since 1.18
|
||||||
]]
|
]]
|
||||||
|
legacy_prefix: docs;
|
||||||
methods {
|
methods {
|
||||||
meth {
|
meth {
|
||||||
[[Method documentation.]]
|
[[Method documentation.]]
|
||||||
|
|
Loading…
Reference in New Issue