hash: better handling of NULL, add magic checking.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 7 Dec 2008 13:28:29 +0000 (13:28 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 7 Dec 2008 13:28:29 +0000 (13:28 +0000)
commit8fb8857590f1bd645b36fb171da7841149d40c1d
tree04b01248da51687c28cafe3f5c22da60f312ca69
parent95eea1d887f84d28da858ff3a8b66925ae744425
hash: better handling of NULL, add magic checking.

 * evas: if we automatically destroy hash, check for NULL before
   handling it to eina api, which expect elements to be created with
   eina_hash_new() and thus will fail on NULL.
 * eina: add magic checking for eina_hash and eina_hash_iterator, this will
   help spot when NULL is used.
 * eina_hash_foreach: do not try to create the iterator if hash is NULL.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@37982 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/include/eina_private.h
src/lib/eina_hash.c