cedric [Fri, 20 Nov 2009 20:46:24 +0000 (20:46 +0000)]
* eina_module: Add eina_module_find. Thanks to Fabiano FidĂȘncio <fidencio@profusion.mobi>.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43847
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 19 Nov 2009 09:02:25 +0000 (09:02 +0000)]
stupid AC_CHECK_PROG
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43800
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 19 Nov 2009 08:29:22 +0000 (08:29 +0000)]
minor fix
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43797
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Sat, 14 Nov 2009 08:43:18 +0000 (08:43 +0000)]
i forgot to align the result
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43688
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Sat, 14 Nov 2009 08:40:11 +0000 (08:40 +0000)]
better configure output
If nobody is against it, i'll change the configure output
of the EFL so that it is the same
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43687
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
cedric [Fri, 13 Nov 2009 17:52:43 +0000 (17:52 +0000)]
* eina: Now it's possible set a level when eina should abort on log.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43669
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Thu, 12 Nov 2009 19:41:02 +0000 (19:41 +0000)]
fix stringshare of small strings.
_eina_stringshare_small_bucket_find() was receiving the plength with
size -1 since the first character is the same, but inside it was not
doing the same, thus it was always failing the first test based on
size.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43634
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
raoul [Mon, 9 Nov 2009 10:39:49 +0000 (10:39 +0000)]
Initialize value for correct counting of # cpu on macosx
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43571
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
raoul [Mon, 9 Nov 2009 09:07:10 +0000 (09:07 +0000)]
Add __MACH__ and __APPLE__ guards to compile on macosx
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@43568
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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