profile/ivi/eina.git
14 years agofunction defined as void, don't return a value
englebass [Sun, 8 Nov 2009 19:52:31 +0000 (19:52 +0000)]
function defined as void, don't return a value

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix compilation on OpenBSD
caro [Sat, 7 Nov 2009 19:44:39 +0000 (19:44 +0000)]
fix compilation on OpenBSD

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43516 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix compilation of eina_amalgamation.c on Windows
caro [Sat, 7 Nov 2009 16:09:58 +0000 (16:09 +0000)]
fix compilation of eina_amalgamation.c on Windows

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43513 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix dist/distcheck rule
caro [Fri, 6 Nov 2009 01:02:35 +0000 (01:02 +0000)]
fix dist/distcheck rule

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43474 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd pthread support on Windows
caro [Tue, 3 Nov 2009 16:53:21 +0000 (16:53 +0000)]
add pthread support on Windows

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43435 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodisable amalgamation by default
caro [Tue, 3 Nov 2009 16:52:45 +0000 (16:52 +0000)]
disable amalgamation by default

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43434 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEina log : check main thread in eina_log_threads_shutdown
watchwolf [Mon, 2 Nov 2009 10:08:57 +0000 (10:08 +0000)]
Eina log : check main thread in eina_log_threads_shutdown

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43415 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoremove useless $(builddir)/ (also confirmed by a autoconf dev),
caro [Sun, 1 Nov 2009 21:00:22 +0000 (21:00 +0000)]
remove useless $(builddir)/ (also confirmed by a autoconf dev),
as anyway, '$(builddir)' is always '.' make distcheck passes.

Thanks to cantona who reported it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43401 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEina: renawe _threads_activated for amalgation
watchwolf [Sun, 1 Nov 2009 20:13:12 +0000 (20:13 +0000)]
Eina: renawe _threads_activated for amalgation

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43400 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEina : add a prefix to STRINGSHARE_LOCK and LOG_LOCK
watchwolf [Sun, 1 Nov 2009 20:09:26 +0000 (20:09 +0000)]
Eina : add a prefix to STRINGSHARE_LOCK and LOG_LOCK

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43399 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEina : now eina stringshare is thread safe if eina_threads_init() is called. Eina...
watchwolf [Sun, 1 Nov 2009 19:50:18 +0000 (19:50 +0000)]
Eina : now eina stringshare is thread safe if eina_threads_init() is called. Eina log which was thread safe is now thread safe only if the previous functions is called

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43398 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd missing lib check for fnmatch.
devilhorns [Wed, 28 Oct 2009 13:04:09 +0000 (13:04 +0000)]
Add missing lib check for fnmatch.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43328 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoPatch configure.ac to check for fnmatch header.
devilhorns [Wed, 28 Oct 2009 13:00:59 +0000 (13:00 +0000)]
Patch configure.ac to check for fnmatch header.
Thanks Vincent :)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43327 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoPatch to allow a quieter eina when using eina_log in your own libs/apps.
devilhorns [Wed, 28 Oct 2009 12:48:04 +0000 (12:48 +0000)]
Patch to allow a quieter eina when using eina_log in your own libs/apps.
Approved by k-s.

Added some doxy to describe the new env variable.
(Eina authors may want to reword this...up to you)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43326 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEina: add eina_list_split_list()
watchwolf [Tue, 27 Oct 2009 10:26:20 +0000 (10:26 +0000)]
Eina: add eina_list_split_list()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43307 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agowarning--
raster [Sun, 25 Oct 2009 08:57:41 +0000 (08:57 +0000)]
warning--

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43259 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agowarning--
raster [Sun, 25 Oct 2009 08:52:47 +0000 (08:52 +0000)]
warning--

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43258 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoshh warning
raster [Sun, 25 Oct 2009 08:45:36 +0000 (08:45 +0000)]
shh warning

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43257 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix docs for hash_free
sachiel [Sat, 24 Oct 2009 04:30:52 +0000 (04:30 +0000)]
Fix docs for hash_free

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43237 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Fix EINA_LIST_REVERSE_FOREACH_SAFE typo from Gustavo Chaves.
cedric [Wed, 21 Oct 2009 19:02:52 +0000 (19:02 +0000)]
* eina: Fix EINA_LIST_REVERSE_FOREACH_SAFE typo from Gustavo Chaves.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43186 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd some more headers at the top of eina_amalgamation.c.
caro [Tue, 13 Oct 2009 17:14:50 +0000 (17:14 +0000)]
Add some more headers at the top of eina_amalgamation.c.
Fix compilation on Windows CE

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43054 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_hash: First parameter could be NULL.
cedric [Tue, 13 Oct 2009 17:11:58 +0000 (17:11 +0000)]
* eina_hash: First parameter could be NULL.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43053 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: This initialisation is not needed, but will reduce llvm warning noise.
cedric [Wed, 7 Oct 2009 12:06:52 +0000 (12:06 +0000)]
* eina: This initialisation is not needed, but will reduce llvm warning noise.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42935 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * more quoting
caro [Tue, 6 Oct 2009 16:54:08 +0000 (16:54 +0000)]
 * more quoting
 * add silent rules (shave feature)
   see the description of AM_SILENT_RULES in:
   http://www.gnu.org/software/automake/manual/automake.html#Public-Macros

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42905 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix compilation on Windows wrt changes in fixed point code
caro [Wed, 30 Sep 2009 17:29:30 +0000 (17:29 +0000)]
Fix compilation on Windows wrt changes in fixed point code

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42822 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Cleanup Eina fixed point implementation.
cedric [Tue, 29 Sep 2009 12:04:50 +0000 (12:04 +0000)]
* eina: Cleanup Eina fixed point implementation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42798 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Fix doc layout.
cedric [Tue, 29 Sep 2009 09:53:41 +0000 (09:53 +0000)]
* eina: Fix doc layout.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42796 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix eina_tile_grid_slicer_setup when a 0x0 rectangle was given as argument.
antognolli [Mon, 28 Sep 2009 20:03:56 +0000 (20:03 +0000)]
Fix eina_tile_grid_slicer_setup when a 0x0 rectangle was given as argument.

In this case slc->first wasn't being set, as well as the info.col and
info.row. This could bring some strange behavior like a call to
eina_tile_grid_slicer_next() not returning false.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42783 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoand AC_SUBST the requirement...
caro [Fri, 25 Sep 2009 15:43:41 +0000 (15:43 +0000)]
and AC_SUBST the requirement...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42703 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * really export symbols on Windows (EFL_EINA_BUILD not
caro [Fri, 25 Sep 2009 15:39:53 +0000 (15:39 +0000)]
 * really export symbols on Windows (EFL_EINA_BUILD not
   correctly defined)
 * add evil in the Requires.private field of eina-0.pc.in

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42702 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_atofp: Always return EINA_TRUE on valid input string.
cedric [Fri, 25 Sep 2009 12:02:14 +0000 (12:02 +0000)]
* eina_atofp: Always return EINA_TRUE on valid input string.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42700 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoreturn false if fp is NULL, update doc accordingly
caro [Fri, 25 Sep 2009 11:51:52 +0000 (11:51 +0000)]
return false if fp is NULL, update doc accordingly

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42699 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Fix build without amalgamation.
cedric [Fri, 25 Sep 2009 11:36:56 +0000 (11:36 +0000)]
* eina: Fix build without amalgamation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42698 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * convert string to fp only if fp is not NULL
caro [Fri, 25 Sep 2009 11:23:37 +0000 (11:23 +0000)]
 * convert string to fp only if fp is not NULL
 * add doc of eina_convert_atofp()
 * minor doc cleanup

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42697 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Add eina_atofp.
cedric [Fri, 25 Sep 2009 10:03:19 +0000 (10:03 +0000)]
* eina: Add eina_atofp.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42694 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * add documentation for eina_convert_fptoa()
caro [Fri, 25 Sep 2009 08:44:04 +0000 (08:44 +0000)]
 * add documentation for eina_convert_fptoa()
 * fix typo in doc

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42691 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Improve eina_fptoa test.
cedric [Wed, 23 Sep 2009 16:57:59 +0000 (16:57 +0000)]
* eina: Improve eina_fptoa test.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42648 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Add eina_fptoa.
cedric [Wed, 23 Sep 2009 16:47:08 +0000 (16:47 +0000)]
* eina: Add eina_fptoa.

This is a small piece of code, but a big one for an edje fixed point implementation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42646 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoconfigure eina with VS according to the used mode (debug or release)
caro [Tue, 22 Sep 2009 22:28:35 +0000 (22:28 +0000)]
configure eina with VS according to the used mode (debug or release)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42625 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd README.txt and MANIFEST.txt files
caro [Wed, 16 Sep 2009 20:23:11 +0000 (20:23 +0000)]
add README.txt and MANIFEST.txt files

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42526 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * fix compilation on Windows when using amalgamation
caro [Wed, 16 Sep 2009 17:22:01 +0000 (17:22 +0000)]
 * fix compilation on Windows when using amalgamation
 * put alloca declaration at the beginning

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42517 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * allow compilation with vc++
caro [Wed, 16 Sep 2009 13:38:21 +0000 (13:38 +0000)]
 * allow compilation with vc++
 * fix a small warning

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42513 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * update Visual Studio project files:
caro [Wed, 16 Sep 2009 13:31:23 +0000 (13:31 +0000)]
 * update Visual Studio project files:
   - link against evil
   - eina mempools are statically linked
 * formatting in start.bat

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42512 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * add Visual Studio 2008 project
caro [Wed, 16 Sep 2009 11:32:24 +0000 (11:32 +0000)]
 * add Visual Studio 2008 project
 * use a single start file to launch Visual Studio 2005 or 2008 automatically

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42510 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agominor fixes.
barbieri [Tue, 15 Sep 2009 22:32:24 +0000 (22:32 +0000)]
minor fixes.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42504 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoupdate Visual Studio project
caro [Tue, 15 Sep 2009 21:20:56 +0000 (21:20 +0000)]
update Visual Studio project

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42501 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomove the declaration of variables at the beginning of the block
caro [Tue, 15 Sep 2009 21:20:08 +0000 (21:20 +0000)]
move the declaration of variables at the beginning of the block

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42499 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomove EINA_DEPRECATED at the beginning of the declaration,
caro [Tue, 15 Sep 2009 21:19:15 +0000 (21:19 +0000)]
move EINA_DEPRECATED at the beginning of the declaration,
because it's more visible, and vc++ does not like it at
the end.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42498 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_log: Fallback to mutex when spinlock doesn't exist.
cedric [Mon, 14 Sep 2009 16:06:18 +0000 (16:06 +0000)]
* eina_log: Fallback to mutex when spinlock doesn't exist.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42489 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Add explanation around compiler false positiv warning.
cedric [Mon, 14 Sep 2009 15:28:55 +0000 (15:28 +0000)]
* eina: Add explanation around compiler false positiv warning.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42488 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdded the Eina_Tile_Grid_Slicer iterator.
antognolli [Fri, 11 Sep 2009 23:51:47 +0000 (23:51 +0000)]
Added the Eina_Tile_Grid_Slicer iterator.

This new iterator receives a rectangle as argument and tile_w X tile_h sized
tile, and slices the rectangle iterating over it on each iteration.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42427 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoconstness++
barbieri [Fri, 11 Sep 2009 23:10:57 +0000 (23:10 +0000)]
constness++

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42426 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix lighblue and add cyan.
barbieri [Fri, 11 Sep 2009 14:22:24 +0000 (14:22 +0000)]
fix lighblue and add cyan.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42410 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd libeina-svn-04.lintian-overrides
horms [Thu, 10 Sep 2009 02:44:05 +0000 (02:44 +0000)]
Add libeina-svn-04.lintian-overrides

Based on libeina-svn-03.lintian-overrides from
the eina 0.0.2.062-2 package on debian.org

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42378 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUpdate libeina-svn-01 to libeina-svn-04
horms [Thu, 10 Sep 2009 02:41:40 +0000 (02:41 +0000)]
Update libeina-svn-01 to libeina-svn-04

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42377 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemove bogus mmu debian-version
horms [Thu, 10 Sep 2009 02:32:47 +0000 (02:32 +0000)]
Remove bogus mmu debian-version

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42376 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUpdate version in Debian changelog to 0.0.2.62
horms [Thu, 10 Sep 2009 02:31:36 +0000 (02:31 +0000)]
Update version in Debian changelog to 0.0.2.62

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42375 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUpdate Debian standards version from 3.8.1 to 3.8.3
horms [Thu, 10 Sep 2009 01:41:41 +0000 (01:41 +0000)]
Update Debian standards version from 3.8.1 to 3.8.3

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42374 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEINA: Fix compilation when builddir != srcdir.
antognolli [Wed, 9 Sep 2009 20:37:23 +0000 (20:37 +0000)]
EINA: Fix compilation when builddir != srcdir.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42369 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAvoid clashes.
sachiel [Wed, 9 Sep 2009 15:53:50 +0000 (15:53 +0000)]
Avoid clashes.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42368 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoSupport EINA_INLIST to be anywhere in the struct with _FOREACH macros.
sachiel [Wed, 9 Sep 2009 14:05:31 +0000 (14:05 +0000)]
Support EINA_INLIST to be anywhere in the struct with _FOREACH macros.
Fix pointer arithmetic with EINA_CONTAINER_GET.
Change Inlist test to have the int first and not assume a direct cast works.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42366 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * add amalgation support in configure output
caro [Wed, 9 Sep 2009 07:42:08 +0000 (07:42 +0000)]
 * add amalgation support in configure output
 * remove a warning when eina_amalgamation.c is deleted but does not exist
 * delete eina_amalgamation.c when doing 'make clean'

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42363 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agotests: explain some errors messages are expected and check for safety checks.
barbieri [Wed, 9 Sep 2009 01:53:40 +0000 (01:53 +0000)]
tests: explain some errors messages are expected and check for safety checks.

Many people try "make check" and then complain they have some error
messages, but they are actually expected... but even for the
experienced is hard to know whenever it was expected or not, so
explicitly say that.

Also check if safety checks are enabled or not before doing "break"
tests, otherwise we'll end with segfaults and tests failing. (I have
not tested with them disabled, but should be okay).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42360 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoremove warnings from tests.
barbieri [Wed, 9 Sep 2009 01:41:29 +0000 (01:41 +0000)]
remove warnings from tests.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42359 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoremove easy warnings, 2 still left that I need someone else to check
barbieri [Wed, 9 Sep 2009 01:27:30 +0000 (01:27 +0000)]
remove easy warnings, 2 still left that I need someone else to check
proper fix.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42358 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agolet's have more testing: amalgamation on by default, report problems!
barbieri [Wed, 9 Sep 2009 00:38:26 +0000 (00:38 +0000)]
let's have more testing: amalgamation on by default, report problems!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42356 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoreplace UNLIKELY() with EINA_UNLIKELY()
barbieri [Tue, 8 Sep 2009 21:42:17 +0000 (21:42 +0000)]
replace UNLIKELY() with EINA_UNLIKELY()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42354 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix segv reported by Peter Wehrfritz on eina init/shutdown (specifically on
dieb [Mon, 7 Sep 2009 23:23:03 +0000 (23:23 +0000)]
Fix segv reported by Peter Wehrfritz on eina init/shutdown (specifically on
eina_log init/shutdown as it wasn't resetting domains counters properly).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42334 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago--enable-amalgamation
barbieri [Mon, 7 Sep 2009 05:54:42 +0000 (05:54 +0000)]
--enable-amalgamation

This will concatenate all source files in the hope compiler will do a
better job. On my test with static/built in mempools it saves me 4k, I
guess some intra module calls can be saved.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42315 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agouse quotes to include config.h
barbieri [Mon, 7 Sep 2009 04:32:49 +0000 (04:32 +0000)]
use quotes to include config.h

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42314 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix message
barbieri [Mon, 7 Sep 2009 04:29:27 +0000 (04:29 +0000)]
fix message

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42313 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoallow amalgamation of files, at least symbols don't clash anymore.
barbieri [Mon, 7 Sep 2009 04:23:05 +0000 (04:23 +0000)]
allow amalgamation of files, at least symbols don't clash anymore.

more related to amalgamation later.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42312 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomalloc--: error and magic can take statically defined strings so no
barbieri [Mon, 7 Sep 2009 03:32:22 +0000 (03:32 +0000)]
malloc--: error and magic can take statically defined strings so no
need to strdup them.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42311 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAPI BREAK: eina_magic_string_set() does not change existing strings anymore.
barbieri [Mon, 7 Sep 2009 02:33:54 +0000 (02:33 +0000)]
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

14 years agoeina_inlist.h is not required anymore.
barbieri [Sun, 6 Sep 2009 22:56:34 +0000 (22:56 +0000)]
eina_inlist.h is not required anymore.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42305 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_error: improvements to make it faster.
barbieri [Sun, 6 Sep 2009 22:54:49 +0000 (22:54 +0000)]
eina_error: improvements to make it faster.

Use a simple array instead of inlist, error get is now much faster
using direct index access.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42304 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoallocate more buckets on init to save couple of reallocs during startup.
barbieri [Sun, 6 Sep 2009 22:34:38 +0000 (22:34 +0000)]
allocate more buckets on init to save couple of reallocs during startup.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42303 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix macro positioning of '\'
barbieri [Sun, 6 Sep 2009 22:25:36 +0000 (22:25 +0000)]
fix macro positioning of '\'

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42302 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEINA API BREAK: no more individual modules init/shutdown.
barbieri [Sun, 6 Sep 2009 22:21:56 +0000 (22:21 +0000)]
EINA API BREAK: no more individual modules init/shutdown.

Being able to indivually initialize individual modules was initially
"good", but at end it's putting complexities on users that would try
to "optimize" by doing just what they used, but in the end most people
would get them wrong, users would have to do lots of code and etc. At
the end it does not worth.

Most module init just register handful errors and log domains, so are
cheap. The exception is mempool users, that would dlopen() stuff, but
people that are concerned (embedded) can just compile those statically
in eina.

Since at the end any real application would use most of modules, we
actually end saving lots of function calls that would do nothing other
than increment a global counter.

I also did the init/shutdown use an array, making it easier to
maintain. The inital dependencies were analysed by a script I wrote, I
hope it's all right.

Please fix any breakages you find!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42300 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoshut down safety checks in the log module
caro [Sun, 6 Sep 2009 15:25:35 +0000 (15:25 +0000)]
shut down safety checks in the log module

Note : currently, because of a circular calls of
eina_log_init() and eina_safety_checks_init(), eina
is not correctly shut down. Imho, eina_log should not
depend on the safety checks module. That would mean
some fprintf in eina_log_domain_new(), eina_log_domain_free(),
eina_log_domain_register()and eina_log_domain_unregister().

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42292 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoshutdown array module
caro [Sun, 6 Sep 2009 08:39:04 +0000 (08:39 +0000)]
shutdown array module

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42287 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log: be able to disable function or line.
barbieri [Fri, 4 Sep 2009 23:45:16 +0000 (23:45 +0000)]
eina_log: be able to disable function or line.

write down specialized cases for threads or not, function or file,
color or not. Maybe it's not even an optimization since we add yet
another indirection/function call, but each case is simpler.

 * EINA_LOG_FILE_DISABLE=1: disables show of file:line in
   stderr/stdout messages.
 * EINA_LOG_FUNCTION_DISABLE=1: disables show of function() in
   stderr/stdout messages.

one must not use the two options at the same time, if that's the case
code will ignore EINA_LOG_FILE_DISABLE=1 and use just function
disable.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42272 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomark log functions as not_instrument_function.
barbieri [Fri, 4 Sep 2009 21:55:03 +0000 (21:55 +0000)]
mark log functions as not_instrument_function.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42270 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log optimization: allow to compile out some debug messages.
barbieri [Fri, 4 Sep 2009 21:28:50 +0000 (21:28 +0000)]
eina_log optimization: allow to compile out some debug messages.

Users may opt to set EINA_LOG_LEVEL_MAXIMUM to some integer and macro
will then evaluate to check for that value before actually call
eina_log_print() macro. By using optimizations compilers will
effectivelly compile out the code if it is never reached, thus saving
the check and function call in possible critical paths.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42269 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix coverage support configuration
caro [Fri, 4 Sep 2009 16:55:51 +0000 (16:55 +0000)]
fix coverage support configuration

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42250 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoinclude eina_log.h in eina_error.h as some log macro are used in it
caro [Fri, 4 Sep 2009 16:54:38 +0000 (16:54 +0000)]
include eina_log.h in eina_error.h as some log macro are used in it

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42249 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log uses pthreads now (if enabled), so link libeina against pthread
caro [Fri, 4 Sep 2009 16:25:18 +0000 (16:25 +0000)]
eina_log uses pthreads now (if enabled), so link libeina against pthread

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42248 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_matrixsparse: loggify, install header, remove warnings and coding style.
barbieri [Fri, 4 Sep 2009 14:18:05 +0000 (14:18 +0000)]
eina_matrixsparse: loggify, install header, remove warnings and coding style.

 * use eina_log
 * install eina_matrixsparse.h
 * remove unused variable
 * fix coding style issue reported by Vincent

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42246 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_matrixsparse: welcome sparse matrix implementation and tests.
barbieri [Fri, 4 Sep 2009 13:43:44 +0000 (13:43 +0000)]
eina_matrixsparse: welcome sparse matrix implementation and tests.

Sparse Matrix was implemented and tested by Rafael Antognolli and
myself in order to implement optimized large sparse matrix walk in
some products, one of them WebKit-EFL optimizations.

We have done extensive tests, with good code coverage. Similar to
lists/inlists, we keep pointer to last known element and similar to
iterators we keep reference to last accessed row and cell inside
rows. This allows fast sequential access (for i... for j... m[i,j]),
that is our most common usage case.

Rows are kept in a list, with cells inside that row as another
list. It's not similar to most book implementations where cells keep
reference to their sibling cells in other rows as well, we opted to
not do that to save some pointers and make algorithms simpler, still
do great for our use case.

This code was developed on behalf of our client, that wants to remain
unnamed so far. Thanks client ;-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42243 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agooops! thanks Vincent.
barbieri [Fri, 4 Sep 2009 03:52:05 +0000 (03:52 +0000)]
oops! thanks Vincent.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42230 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify array.
barbieri [Fri, 4 Sep 2009 02:35:24 +0000 (02:35 +0000)]
loggify array.

this is the last eina module to be converted to eina_log! :-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42228 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_module must initialize eina_array as it is used.
barbieri [Fri, 4 Sep 2009 02:34:48 +0000 (02:34 +0000)]
eina_module must initialize eina_array as it is used.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42227 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomake it easier to spot wrong users of eina_log_print()
barbieri [Fri, 4 Sep 2009 02:34:10 +0000 (02:34 +0000)]
make it easier to spot wrong users of eina_log_print()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42226 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify rectangle.
barbieri [Fri, 4 Sep 2009 02:11:44 +0000 (02:11 +0000)]
loggify rectangle.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42225 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify stringshare, with extensive debug.
barbieri [Fri, 4 Sep 2009 02:03:46 +0000 (02:03 +0000)]
loggify stringshare, with extensive debug.

note that one can turn per module debug, for example:

   EINA_LOG_LEVEL=4 EINA_LOG_LEVELS=eina_stringshare:0 ./bla

will enable level 4 (debug) for all modules except eina_stringshare
that is forced to 0 (just critical messages).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42224 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify stringshare.
barbieri [Fri, 4 Sep 2009 01:54:37 +0000 (01:54 +0000)]
loggify stringshare.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42223 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify main.
barbieri [Fri, 4 Sep 2009 01:48:36 +0000 (01:48 +0000)]
loggify main.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42222 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify list.
barbieri [Fri, 4 Sep 2009 01:43:50 +0000 (01:43 +0000)]
loggify list.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42221 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_error: deprecated old logging, move to eina_log.
barbieri [Fri, 4 Sep 2009 01:37:11 +0000 (01:37 +0000)]
eina_error: deprecated old logging, move to eina_log.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42220 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify benchmark.
barbieri [Fri, 4 Sep 2009 01:19:19 +0000 (01:19 +0000)]
loggify benchmark.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42219 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33