eina_safety_checks_init()
authorbarbieri <barbieri>
Fri, 4 Sep 2009 00:53:19 +0000 (00:53 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 Sep 2009 00:53:19 +0000 (00:53 +0000)
commit4598f6ade76e5da0b8464854d42b30ce946675e8
tree965e59eb9d402b2c6de0c93d5209d39fddc643b7
parent19c9e008ac27548d72be9cd6974265d1b50dac3b
eina_safety_checks_init()

All these individual init functions are getting messy, some modules
lack them and it's easy to get inconsistent. Safety check needs error
and log, but these need safety checks as well, some modules (lalloc,
rbtree and others) use safety checks but provide no _init().

I want to know if we really gain something to init individual
modules. It should not be that expensive as init should not allocate
heavy resources and the recommendation is to call eina_init() so most
users will do that anyway.

If people agree I'll unmark all *_init() as EAPI and make them private
to eina lib.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42214 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
14 files changed:
src/include/eina_safety_checks.h
src/lib/Makefile.am
src/lib/eina_array.c
src/lib/eina_convert.c
src/lib/eina_counter.c
src/lib/eina_error.c
src/lib/eina_hash.c
src/lib/eina_list.c
src/lib/eina_log.c
src/lib/eina_main.c
src/lib/eina_mempool.c
src/lib/eina_module.c
src/lib/eina_rectangle.c
src/lib/eina_stringshare.c