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:
Marcel Hollerbach 2019-01-17 19:44:03 +01:00
parent 1534f50be0
commit 270cb385ca
1 changed files with 3 additions and 3 deletions

View File

@ -759,14 +759,14 @@ _db_check_implemented(Validate_State *vals, Eolian_Class *cl, Eina_Hash *fs)
{
case IMPL_STATUS_NONE:
_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);
succ = EINA_FALSE;
continue;
case IMPL_STATUS_GET:
case IMPL_STATUS_SET:
_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);
succ = EINA_FALSE;
continue;
@ -774,7 +774,7 @@ _db_check_implemented(Validate_State *vals, Eolian_Class *cl, Eina_Hash *fs)
continue;
default:
_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);
return EINA_FALSE;
}