eolian: make error messages usable
base of the impl is where the function is defined, not where the missing implementation is. ref T5719 Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Differential Revision: https://phab.enlightenment.org/D7680
This commit is contained in:
parent
1534f50be0
commit
270cb385ca
|
@ -759,14 +759,14 @@ _db_check_implemented(Validate_State *vals, Eolian_Class *cl, Eina_Hash *fs)
|
||||||
{
|
{
|
||||||
case IMPL_STATUS_NONE:
|
case IMPL_STATUS_NONE:
|
||||||
_eo_parser_log(
|
_eo_parser_log(
|
||||||
&impl->base, "unimplemented function '%s' (originally defined at %s:%d:%d)",
|
&cl->base, "unimplemented function '%s' (originally defined at %s:%d:%d)",
|
||||||
fid->base.name, fid->base.file, fid->base.line, fid->base.column);
|
fid->base.name, fid->base.file, fid->base.line, fid->base.column);
|
||||||
succ = EINA_FALSE;
|
succ = EINA_FALSE;
|
||||||
continue;
|
continue;
|
||||||
case IMPL_STATUS_GET:
|
case IMPL_STATUS_GET:
|
||||||
case IMPL_STATUS_SET:
|
case IMPL_STATUS_SET:
|
||||||
_eo_parser_log(
|
_eo_parser_log(
|
||||||
&impl->base, "partially implemented function '%s' (originally defined at %s:%d:%d)",
|
&cl->base, "partially implemented function '%s' (originally defined at %s:%d:%d)",
|
||||||
fid->base.name, fid->base.file, fid->base.line, fid->base.column);
|
fid->base.name, fid->base.file, fid->base.line, fid->base.column);
|
||||||
succ = EINA_FALSE;
|
succ = EINA_FALSE;
|
||||||
continue;
|
continue;
|
||||||
|
@ -774,7 +774,7 @@ _db_check_implemented(Validate_State *vals, Eolian_Class *cl, Eina_Hash *fs)
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
_eo_parser_log(
|
_eo_parser_log(
|
||||||
&impl->base, "internal error, unregistered function '%s' (originally defined at %s:%d:%d)",
|
&cl->base, "internal error, unregistered function '%s' (originally defined at %s:%d:%d)",
|
||||||
fid->base.name, fid->base.file, fid->base.line, fid->base.column);
|
fid->base.name, fid->base.file, fid->base.line, fid->base.column);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue