Page MenuHomePhabricator

csharp: Fix Hash.DelByValue
ClosedPublic

Authored by lauromoura on Thu, Sep 5, 10:05 AM.

Details

Summary

The C function eina_hash_del_by_data requires the same value that was
passed to the add function. As C# hashes store stuff through pointers
due to marshalling, this makes it hard to pass the same pointer for it.

So this functionality is implemented at C# level instead of relying on
the native function directly.

Fixes T8198

Thanks to @brunobelo and @singh.amitesh for the test case.

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lauromoura created this revision.Thu, Sep 5, 10:05 AM
lauromoura requested review of this revision.Thu, Sep 5, 10:05 AM
brunobelo accepted this revision.Fri, Sep 13, 1:34 PM
This revision is now accepted and ready to land.Fri, Sep 13, 1:34 PM
This revision was automatically updated to reflect the committed changes.