Page MenuHomePhabricator

Reconcile eina legacy examples to something easier to comprehend
Closed, ResolvedPublic

Description

iterator, strings, array, hash, list, values

Also strings manipulation if we can find a way to make a useful example!

ajwillia.ms raised the priority of this task from High to Showstopper Issues.Nov 9 2017, 8:58 AM

iterator, list and array done - let me know if they are not meeting the requirements.
https://git.enlightenment.org/tools/examples.git/tree/reference/c/eina/src

I did some slight modification to rely on EINA_ITERATOR_FOREACH macro that make the code a little bit nicer to read and I think people should use it instead of manually calling eina_iterator_next.

OK, that is code in for all of them now. I included some string manipulation along the way.
Also added a standalone reference for eina_value_custom to house the old timezone example which I felt was powerful (and complex) enough to need it's own file.

All in the location linked above.
I will add some comments to the files before marking this issue done.

ajwillia.ms closed this task as Resolved.Nov 16 2017, 7:15 AM

That's eina taken care of in just 7 source files with very little duplication this time round.