forked from enlightenment/efl
eo2: remove EO2_OP_FUNC_VIRTUAL
a pure virtual function is an EO2_OP_FUNC with NULL as private function implementation pointer
This commit is contained in:
parent
feb5a5dc9e
commit
4f73887b47
|
@ -686,13 +686,11 @@ typedef struct _Eo2_Op_Call_Data
|
||||||
|
|
||||||
// OP ID of an overriding function
|
// OP ID of an overriding function
|
||||||
#define EO2_OP_OVERRIDE ((Eo_Op) -1)
|
#define EO2_OP_OVERRIDE ((Eo_Op) -1)
|
||||||
#define EO2_OP_VIRTUAL ((Eo_Op) -2)
|
|
||||||
|
|
||||||
#define EO2_OP_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_REGULAR, _doc}
|
#define EO2_OP_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_REGULAR, _doc}
|
||||||
#define EO2_OP_CLASS_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_CLASS, _doc}
|
#define EO2_OP_CLASS_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_CLASS, _doc}
|
||||||
#define EO2_OP_FUNC_OVERRIDE(_private, _api) {_private, _api, EO2_OP_OVERRIDE, EO_OP_TYPE_REGULAR, NULL}
|
#define EO2_OP_FUNC_OVERRIDE(_private, _api) {_private, _api, EO2_OP_OVERRIDE, EO_OP_TYPE_REGULAR, NULL}
|
||||||
#define EO2_OP_CLASS_FUNC_OVERRIDE(_private, _api) {_private, _api, EO2_OP_OVERRIDE, EO_OP_TYPE_CLASS, NULL}
|
#define EO2_OP_CLASS_FUNC_OVERRIDE(_private, _api) {_private, _api, EO2_OP_OVERRIDE, EO_OP_TYPE_CLASS, NULL}
|
||||||
#define EO2_OP_FUNC_VIRTUAL(_api, _doc) {NULL, _api, EO2_OP_VIRTUAL, EO_OP_TYPE_REGULAR, _doc}
|
|
||||||
#define EO2_OP_SENTINEL { NULL, NULL, 0, EO_OP_TYPE_INVALID, NULL}
|
#define EO2_OP_SENTINEL { NULL, NULL, 0, EO_OP_TYPE_INVALID, NULL}
|
||||||
|
|
||||||
// returns the OP id corresponding to the given api_func
|
// returns the OP id corresponding to the given api_func
|
||||||
|
|
|
@ -573,11 +573,6 @@ _eo2_class_funcs_set(_Eo_Class *klass)
|
||||||
op_desc->op = op_id;
|
op_desc->op = op_id;
|
||||||
op_id++;
|
op_id++;
|
||||||
}
|
}
|
||||||
else if (op_desc->op == EO2_OP_VIRTUAL)
|
|
||||||
{
|
|
||||||
op_desc->op = op_id;
|
|
||||||
op_id++;
|
|
||||||
}
|
|
||||||
else if (op_desc->op == EO2_OP_OVERRIDE)
|
else if (op_desc->op == EO2_OP_OVERRIDE)
|
||||||
{
|
{
|
||||||
if (klass->parent == NULL)
|
if (klass->parent == NULL)
|
||||||
|
|
Loading…
Reference in New Issue