forked from enlightenment/efl
Eo: Actually, no reason why to force inheritance from base class.
You'll be using functionality if you don't but you still don't have to. It's not perfect though, I still need to make it possible in other places. SVN revision: 71934
This commit is contained in:
parent
df3343d002
commit
c019546d92
|
@ -941,23 +941,6 @@ eo_class_new(const Eo_Class_Description *desc, Eo_Class_Id id, const Eo_Class *p
|
||||||
klass->data_offset = klass->parent->data_offset +
|
klass->data_offset = klass->parent->data_offset +
|
||||||
EO_ALIGN_SIZE(klass->parent->desc->data_size);
|
EO_ALIGN_SIZE(klass->parent->desc->data_size);
|
||||||
}
|
}
|
||||||
/* EO_BASE_CLASS is allowed not to have a parent. */
|
|
||||||
else if (id != EO_BASE_CLASS_ID)
|
|
||||||
{
|
|
||||||
/* No parent. */
|
|
||||||
switch (klass->desc->type)
|
|
||||||
{
|
|
||||||
case EO_CLASS_TYPE_REGULAR:
|
|
||||||
case EO_CLASS_TYPE_REGULAR_NO_INSTANT:
|
|
||||||
ERR("Regular classes ('%s') must inherit from EO_BASE_CLASS.", klass->desc->name);
|
|
||||||
goto cleanup;
|
|
||||||
break;
|
|
||||||
case EO_CLASS_TYPE_INTERFACE:
|
|
||||||
case EO_CLASS_TYPE_MIXIN:
|
|
||||||
/* Do nothing. */
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_eo_class_check_op_descs(klass, id))
|
if (!_eo_class_check_op_descs(klass, id))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue