Cedric BAIL
4bb02bdf37
Add more error information during eina module load.
...
SVN revision: 36955
2008-10-22 08:56:19 +00:00
Gustavo Sverzut Barbieri
93a280b7d7
eina_bool is now an unsigned char.
...
This makes clear what size and if we have a signal or not in our type,
so no compilers have the right to choose different for us (like they
do with enum).
Also fixes compile of C++ programs with eina_rectangle.h, that
contains some inline code, the expression evaluates a boolean
expression and compiler does not know how to convert that to old
Eina_Bool.
SVN revision: 36939
2008-10-21 15:21:37 +00:00
Cedric BAIL
430fb672cd
Rename EINA_LIST_ITER_NEXT to EINA_LIST_FOREACH.
...
SVN revision: 36930
2008-10-21 12:49:29 +00:00
Cedric BAIL
68d377afe6
Rename EINA_INLIST_ITER_NEXT/EINA_INLIST_ITER_LAST to EINA_INLIST_FOREACH/
...
EINA_INLIST_REVERSE_FOREACH so it best match is behaviour. Asked by Gustavo.
SVN revision: 36928
2008-10-21 12:19:57 +00:00
Cedric BAIL
1950725606
Add merge function to list data type.
...
SVN revision: 36922
2008-10-21 11:28:38 +00:00
Cedric BAIL
c9779e876f
Actually include eina_convert in the main header.
...
SVN revision: 36860
2008-10-20 15:01:01 +00:00
Cedric BAIL
93711c814e
Fix hash iterator to iterate with only one element.
...
SVN revision: 36858
2008-10-20 14:45:01 +00:00
Cedric BAIL
a52cc857fa
Put the mempool backend structure with other structure.
...
SVN revision: 36855
2008-10-20 13:23:18 +00:00
Cedric BAIL
6734c580df
Zero is a correct value.
...
SVN revision: 36854
2008-10-20 13:21:52 +00:00
Carsten Haitzler
31727e370d
actually compile!
...
SVN revision: 36849
2008-10-20 12:08:16 +00:00
Cedric BAIL
4953eb74fe
Apps can now provide their own mempool.
...
SVN revision: 36847
2008-10-20 11:40:01 +00:00
Vincent Torri
84dcc24d09
Fix compilation and warnings on Windows:
...
* include Evil.h for getenv on mingw32ce
* include config.h in benchmark.c so that EAPI is correctly defined
* minor fixes in configure.ac
SVN revision: 36729
2008-10-16 21:31:51 +00:00
Cedric BAIL
03043eb74d
Oops forgot this one.
...
SVN revision: 36690
2008-10-15 16:40:57 +00:00
Cedric BAIL
380120ce2a
Should fix build outside of the source tree.
...
SVN revision: 36689
2008-10-15 16:23:14 +00:00
Cedric BAIL
d905ee9bda
Add option to report stringshare usage (E17 use around 10000 differents strings).
...
SVN revision: 36658
2008-10-14 15:32:57 +00:00
Cedric BAIL
ed012620d1
Fix stringshare bug with same length.
...
SVN revision: 36657
2008-10-14 15:31:45 +00:00
Cedric BAIL
a61ba1c35a
Fix some warning.
...
SVN revision: 36563
2008-10-10 09:33:40 +00:00
Cedric BAIL
5cddd1f760
Remove dead code.
...
SVN revision: 36493
2008-10-07 11:07:03 +00:00
Cedric BAIL
d3ba8a9e2e
Actually bench djb2 inline and not superfast hash function.
...
SVN revision: 36480
2008-10-06 14:48:13 +00:00
Cedric BAIL
195b2da188
Give more choice to eina_list mempool.
...
SVN revision: 36479
2008-10-06 14:47:09 +00:00
Cedric BAIL
b158ab48ed
Update hash benchmark to reflect E use (hash population under 2000, more find than add).
...
Current status :
- same performance for evas, eina and glib with les than 500 items.
- glib is then faster, eina/evas are second until 800.
- glib remain the fastest, eina is second, and evas is starting to drop in performance.
SVN revision: 36476
2008-10-06 12:16:27 +00:00
Cedric BAIL
36b46ca065
Remove dead declaration.
...
SVN revision: 36399
2008-10-02 16:23:27 +00:00
Cedric BAIL
439401682d
Reduce code size, and improve sort speed.
...
SVN revision: 36382
2008-10-01 16:30:30 +00:00
Cedric BAIL
a44f814dd2
Using mempool improve cache locality and speed list manipulation like sort.
...
SVN revision: 36363
2008-09-30 16:48:28 +00:00
Cedric BAIL
b1768c99e6
Make eina_error depend on no other sub module that need initialization.
...
SVN revision: 36361
2008-09-30 16:25:11 +00:00
Cedric BAIL
9ef4d6b65d
Benchmark glib mempool too.
...
SVN revision: 36360
2008-09-30 15:07:35 +00:00
Cedric BAIL
9ffada517d
Faster sort initialisation.
...
SVN revision: 36359
2008-09-30 14:16:18 +00:00
Cedric BAIL
3315d29c7f
Fix chained mempool allocator.
...
SVN revision: 36355
2008-09-30 12:55:33 +00:00
Vincent Torri
f9a4c97693
add a config.h
...
SVN revision: 36342
2008-09-30 06:16:41 +00:00
Vincent Torri
bf372e44f9
when a .la file is passed to _LIBADD or _LDADD, automake
...
knows that the corresponding program or lib depends on
that .la file
SVN revision: 36322
2008-09-29 19:30:15 +00:00
Vincent Torri
e88e4d5fb5
* fix warning in tests
...
* add config.h when needed
* remove result/ dir before launching benchmark
SVN revision: 36321
2008-09-29 19:20:16 +00:00
Cedric BAIL
0bc2413113
Fix prev pointer during stringshare_del.
...
SVN revision: 36319
2008-09-29 17:07:50 +00:00
Cedric BAIL
b6960f58b6
Patch from Vincent Torri that cleanup tests, coverage and benchmark.
...
SVN revision: 36315
2008-09-29 14:35:28 +00:00
Cedric BAIL
7c47066009
Change module API to use Eina_Array as we want to use mempool and module for Eina_List.
...
Fix at the same time a closing bug in eina_module.c.
SVN revision: 36312
2008-09-29 13:28:42 +00:00
Cedric BAIL
1620af2ae0
Add benchmark for mempool (chained_mempool is disabled, because it's currently buggy).
...
SVN revision: 36309
2008-09-29 09:45:26 +00:00
Cedric BAIL
93656a916a
Fix initialization.
...
SVN revision: 36308
2008-09-29 09:43:37 +00:00
Cedric BAIL
3564707421
Fix initialization and cleanup.
...
SVN revision: 36307
2008-09-29 09:42:04 +00:00
Vincent Torri
d6ae9053ad
minor formatting
...
SVN revision: 36293
2008-09-28 13:10:08 +00:00
Vincent Torri
79375f9123
* fix clean and dist rules
...
* create eina-$(maj_version).pc.in file automatically
SVN revision: 36292
2008-09-28 12:43:21 +00:00
Cedric BAIL
2acd11a39e
Add a new type of memory pool and factorize test code.
...
SVN revision: 36267
2008-09-26 15:27:46 +00:00
Cedric BAIL
8b33d245e6
Inlined functions require NULL, so including stdlib.h is required.
...
SVN revision: 36266
2008-09-26 15:26:36 +00:00
Cedric BAIL
a466b34ea0
Faster sort from Alexandre Becoulet integrated by quarium inside eina.
...
SVN revision: 36265
2008-09-26 13:45:30 +00:00
Cedric BAIL
6f5b3584dd
Store build information inside eina_config.h, and fix magic use.
...
SVN revision: 36263
2008-09-26 11:41:55 +00:00
Cedric BAIL
42d39725b4
Last part of quarium patch.
...
SVN revision: 36257
2008-09-25 14:46:48 +00:00
Cedric BAIL
8b85ce70d4
Patch from quarium.
...
Add magic to array and list.
Need to patch autotools to generate something like eina_config.h.
SVN revision: 36256
2008-09-25 14:46:16 +00:00
Cedric BAIL
e8b25fb405
Add a sort benchmark.
...
SVN revision: 36250
2008-09-25 12:41:49 +00:00
Cedric BAIL
040e5573d9
Patch from Arnaud de Turckheim "quarium" <quarium@gmail.com>.
...
Use magic inside stringshare without slowdown of benchmark.
Fix magic when not in DEBUG mode.
SVN revision: 36246
2008-09-25 09:02:41 +00:00
Cedric BAIL
4fddcc38df
Fix error stuff.
...
SVN revision: 36225
2008-09-24 17:21:53 +00:00
Cedric BAIL
8072173d6e
As evas use of hash is below 3000 items per hash, update the tests accordingly.
...
SVN revision: 36224
2008-09-24 17:20:24 +00:00
Cedric BAIL
eec2db6edb
Fix test due to mempool internal change.
...
SVN revision: 36223
2008-09-24 17:17:22 +00:00