eina_accessor: make carray accessor work properly
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 18 Dec 2019 16:15:09 +0000 (17:15 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 18 Dec 2019 20:56:57 +0000 (05:56 +0900)
commit72b95a404f064da7e928d8c8de551377666683b2
treee5655cf3b2adfdc7be27df94766a5e0f2dde6f4e
parent4720240d8673d8ed6fcbe268211ac0eb5cdb4f4c
eina_accessor: make carray accessor work properly

a accessor is not really helpfull if it operates like the carray
accessor before this commit. What it was doing is to fill the content of
the "current line" into the data pointer. In a carray the
"current line" is the content of its carray-member.

However, accessors like for inarray array list or inlist do work
completly differently. They are returning the pointer to the "current
line" not the value of the current line.

The only case where this worked is efl_ui_format.c which was only tested
with this accessor, and this accessor also only worked with this
accessor.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10908
src/lib/eina/eina_accessor.c
src/lib/eina/eina_accessor.h
src/tests/eina/eina_test_accessor.c