API BREAK: eina_magic_string_set() does not change existing strings anymore.
authorbarbieri <barbieri>
Mon, 7 Sep 2009 02:33:54 +0000 (02:33 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 7 Sep 2009 02:33:54 +0000 (02:33 +0000)
commit2ed64a7ae95fba30b7beb9b0310601f747ddb7a3
treef776cb036b44e28efe23bbb81898fd0e872818f8
parent81bcd31bb3ac5312ffc923177a14de32905e2095
API BREAK: eina_magic_string_set() does not change existing strings anymore.

It's pointless to be able to change magic number string after it's
created, so let's avoid walking the existing list and just remove
places where strings were being duplicated (list/array both inited
magic strings for accessor/iterators).

Also an optimization, register using an array and sort it before
searching. Sort will just happen when array was changed, and this is
just done when eina_magic_string_get() is called.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42310 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/include/eina_magic.h
src/lib/eina_accessor.c
src/lib/eina_array.c
src/lib/eina_iterator.c
src/lib/eina_list.c
src/lib/eina_magic.c
src/lib/eina_main.c