Gustavo Sverzut Barbieri
c8534587f2
do not check for data, eina_iterator_next/eina_accessor_data_get() does that.
...
SVN revision: 41984
2009-08-25 21:05:00 +00:00
dieb
d7bbc05b12
Initial import of the new eina logging API.
...
* eina_error might be kept for error messages and codes, but it's logging API
will be deprecated. For now, it's been kept for not breaking others code and
for a smoother transition.
* Added test for new logging API, also demonstrates usage.
SVN revision: 41960
2009-08-24 21:43:48 +00:00
Vincent Torri
37fc8c9674
fix warning
...
SVN revision: 41943
2009-08-23 20:37:17 +00:00
Vincent Torri
6e7aecc7c0
* Put definition of alloca before any standard header
...
files according to the doc
* define _GNU_SOURCE before the inclusion of alloca
as features.h inclued by alloca.h, defines some
macros according to _GNU_SOURCE.
SVN revision: 41940
2009-08-23 09:18:14 +00:00
Vincent Torri
13b23be252
don't do arithmetic on void *
...
SVN revision: 41885
2009-08-20 11:56:57 +00:00
Vincent Torri
5213fca489
rewrite a bit that m4 macro
...
SVN revision: 41881
2009-08-20 08:31:26 +00:00
Vincent Torri
137f6f2d91
-pthread should be passed to eina_chained_mempool_la_LDFLAGS
...
SVN revision: 41876
2009-08-19 12:15:10 +00:00
Vincent Torri
989ade86dd
fix a bit the documentation
...
SVN revision: 41870
2009-08-19 07:54:13 +00:00
Vincent Torri
2d97e95d2a
clean a bit the hamster
...
SVN revision: 41869
2009-08-19 07:36:39 +00:00
Vincent Torri
c45bf860da
* remove uneeded semicolons
...
* fix and add doxygen doc
SVN revision: 41868
2009-08-19 07:09:24 +00:00
Vincent Torri
36be15fc55
don't suppose that gcc is the only compiler that can be used.
...
Check if -Wall and -fno-strict-aliasing are supported by the compiler
SVN revision: 41863
2009-08-18 20:04:19 +00:00
Cedric BAIL
0b7407905c
* eina_rectangle: Add a local cache to rectangle creation.
...
SVN revision: 41856
2009-08-18 13:35:33 +00:00
Gustavo Sverzut Barbieri
425ebc47f5
improve docs and simplify macro, by kubo.
...
Kubo just found that docs could be improved and macro could be
simplified during his learning of EFL. Big bonus he did the
improvements =)
SVN revision: 41799
2009-08-16 00:47:23 +00:00
Cedric BAIL
c634e07770
* eina: Fix typo.
...
SVN revision: 41762
2009-08-14 14:22:25 +00:00
Carsten Haitzler
819c572d1c
amazing time hamsters!
...
SVN revision: 41728
2009-08-13 01:26:08 +00:00
Carsten Haitzler
d0c5158f5b
eina hamster++
...
<dieb_> weird, undefined refernce to eina_cpu_count
<raster> you have no cpus!
<dieb_> dammit!
<Sachiel> try eina_hamster_count
<dieb_> lo
<raster> oh god
<raster> now u did it
<raster> i have to add that
<dieb_> heheheh
SVN revision: 41727
2009-08-13 00:47:55 +00:00
Cedric BAIL
e713c62730
* eina_stringshare: We should use "unsigned char", because suncc think that char is signed.
...
SVN revision: 41697
2009-08-12 09:02:09 +00:00
Cedric BAIL
2ba87c1129
* eina: Fix SunPro compiler.
...
SVN revision: 41690
2009-08-11 14:14:42 +00:00
Cedric BAIL
ae1d5b38bb
* eina: eina_cpu_count should be multiplatform.
...
SVN revision: 41689
2009-08-11 14:11:36 +00:00
Rafael Antognolli
a67732bb88
Fixed check at the start of eina_list_accessor_get_at.
...
SVN revision: 41634
2009-08-07 20:28:05 +00:00
Gustavo Sverzut Barbieri
7526d8e309
be more clear in docs.
...
SVN revision: 41629
2009-08-07 01:35:16 +00:00
Gustavo Sverzut Barbieri
944be7e745
Bugfix eina_list_search_sorted_near_list() add sorted_insert.
...
eina_list_search_sorted_near_list() was broken and barfed at my face
during development of eina_list_sorted_insert(), so I rewrote it
following more traditional approach, also adding special cases for
head/tail remembering that random access in lists is not as fast as
array. I also simplified that code.
eina_list_sorted_insert() should be fast, O(log2 n) insert, with
special cases to insert already sorted arrays forwards or backwards,
however I believe that it's better to simply append/prepend in those
cases (if known).
SVN revision: 41625
2009-08-06 22:31:45 +00:00
Gustavo Sverzut Barbieri
f86aa350c6
allow limit tests to run.
...
eina_suite TEST1 TEST2 ... is your friend ;-)
SVN revision: 41624
2009-08-06 22:22:56 +00:00
Gustavo Sverzut Barbieri
4f39f6861a
API BREAK: eina_list_search_sorted_near_list() gets one more parameter.
...
This should not impact anybody, at least in SVN I got no hits for this
function.
The new parameter contains the result of the last call to func(), so
we can know if the node is smaller, bigger or exactly the requested
value and don't need to call func() on node to know for sure.
SVN revision: 41623
2009-08-06 19:01:47 +00:00
Gustavo Sverzut Barbieri
638e79b91e
smarter eina_list_merge(), more tests.
...
eina_list_merge() now fixes the smallest list segment, not always the
right. Before if we joined a list 1 to 1000 segments we'd fix all the
1000 instead of the single at left.
Tests to make sure both code paths are being executed.
SVN revision: 41622
2009-08-06 18:35:53 +00:00
Gustavo Sverzut Barbieri
70a599936d
oops, consider fixed_bitmap if it was built statically.
...
SVN revision: 41621
2009-08-06 18:08:14 +00:00
Gustavo Sverzut Barbieri
aeef508b8a
eina list docs.
...
* document undocumented functions.
* note order of magnitude of each function, try to avoid users
falling into traps.
SVN revision: 41619
2009-08-06 15:50:19 +00:00
Cedric BAIL
2bc76eab5a
* eina_rectangle: Forgot to initialise one attribute.
...
SVN revision: 41606
2009-08-05 14:46:21 +00:00
Cedric BAIL
5784d74daa
* eina: Add eina_cpu_count.
...
SVN revision: 41543
2009-07-30 16:45:15 +00:00
Carsten Haitzler
1ea1c629cb
back to pre ver's
...
SVN revision: 41535
2009-07-29 08:19:34 +00:00
Carsten Haitzler
6db38393cd
SNAPSHOT: svn-03
...
SVN revision: 41532
2009-07-29 08:03:25 +00:00
Cedric BAIL
e75b89d50c
* eina: Handle NULL in eina_list_search_sorted_near_list.
...
SVN revision: 41467
2009-07-21 15:21:46 +00:00
Gustavo Sverzut Barbieri
14105484aa
Eina rectangle missing list init.
...
Rectangle needs the list module for the pool_new() function. Patch
also adds a check for initialization error on the unit test.
By: Andre Dieb
SVN revision: 41460
2009-07-21 01:55:31 +00:00
Gustavo Sverzut Barbieri
25ac55ae09
update rectangle test to new API.
...
Guys, when you change API, please change it everywhere and then run tests!
By: Andre Dieb
SVN revision: 41421
2009-07-18 15:58:44 +00:00
Cedric BAIL
b02de756a6
* eina: Rename eina_module_list_delete to eina_module_list_flush.
...
SVN revision: 41385
2009-07-17 11:13:38 +00:00
Cedric BAIL
6ca987941f
* eina: Fix declaration according to Vincent Torri review.
...
SVN revision: 41359
2009-07-16 12:09:29 +00:00
Carsten Haitzler
01062bf98b
cast. c++ doesn't like the implied void * -> struct * cast.
...
SVN revision: 41358
2009-07-16 03:04:56 +00:00
Cedric BAIL
a477424685
* eina: Expose an helper for memory pool as Eina_Trash data type.
...
SVN revision: 41350
2009-07-15 13:13:52 +00:00
Gustavo Sverzut Barbieri
a772d03b40
inlist: docs, docs docs
...
SVN revision: 41328
2009-07-14 15:32:21 +00:00
Gustavo Sverzut Barbieri
a6f46561e7
add missing stddef.h, required by offsetof()
...
SVN revision: 41327
2009-07-14 15:32:01 +00:00
Gustavo Sverzut Barbieri
9af4d08f79
one more safety check: do not remove element if it's not in any list.
...
This is the best we can do, but what should be done is to check if
element is really from that list.
SVN revision: 41326
2009-07-14 14:00:59 +00:00
Cedric BAIL
729eaf324c
* eina: Remove recursion from eina_rectangle.
...
SVN revision: 41263
2009-07-07 11:24:44 +00:00
Cedric BAIL
dbaeb5eaba
* eina: Partial fix for ticket #286 .
...
SVN revision: 41241
2009-07-03 12:39:32 +00:00
Lars Munch
0b02e8f8a3
On windows use evil's dladdr implementation so you dont have to set
...
EINA_MODULES_MEMPOOL_DIR and EVAS_MODULES_DIR in the windows environment.
SVN revision: 41230
2009-07-02 07:45:01 +00:00
Vincent Torri
07d7e5ce66
* remove the mention of the static link check in configure ouput
...
* add a (ecologic) warning at the end of configure if a module is
statically linked to eina
SVN revision: 41226
2009-06-30 16:18:41 +00:00
Vincent Torri
7a3b2110bf
* more doc
...
* check the returned value of eina_error_init() in eina_module_init()
SVN revision: 41218
2009-06-28 06:29:11 +00:00
Vincent Torri
390f94bcfd
update m4 macros (mainly formatting)
...
SVN revision: 41212
2009-06-27 06:42:14 +00:00
Vincent Torri
c5ed7f0de4
* fix typo
...
* move option of e17 benchmark to its correct place
SVN revision: 41204
2009-06-26 07:52:56 +00:00
Vincent Torri
b38a118162
* use a m4 macro for checking benchmark libraries and
...
check the libraries only if benchmarking is enabled
* add extra dist files to be able to configure eina
with autogen.sh and also add .spec files
SVN revision: 41203
2009-06-26 07:20:15 +00:00
Vincent Torri
c94a92a174
* Remove the use of HAVE___ATTRIBUTE__ (which is defined at
...
configure time) in an exported header. Use only macros
defined by the compilers, which is sufficient and simpler.
* Add missing EINA_DEPRECATED in some cases.
SVN revision: 41199
2009-06-25 19:58:05 +00:00
Vincent Torri
4d5e99df01
add minimum supported version for Windows CE and XP
...
SVN revision: 41198
2009-06-25 19:55:06 +00:00
Cedric BAIL
f60c798f1d
* eina: Fix rectangle merge.
...
SVN revision: 41193
2009-06-25 10:58:16 +00:00
Vincent Torri
ebc20c2236
API BREAK: fix Eina API so that it is more consistent with the other EFL
...
what is modified:
eina_counter_add -> eina_counter_new
eina_counter_delete -> eina_counter_free
eina_lalloc_delete -> eina_lalloc_free
eina_mempool_new -> eina_mempool_add
eina_mempool_delete -> eina_mempool_del
eina_mempool_alloc -> eina_mempool_malloc
eina_tiler_del -> eina_tiler_free
It remains some questions: have the following API a good name:
eina_module_list_delete
eina_list_free
eina_rbtree_delete
(see ticket #286 )
If you find any problem, please report in that thread
SVN revision: 41187
2009-06-24 16:56:49 +00:00
Cedric BAIL
3b384b323c
* eina: Faster Eina_Rectangle_Pool (should be used by OpenGL engine).
...
SVN revision: 41185
2009-06-24 13:38:25 +00:00
Cedric BAIL
746302ad53
* eina: Make eina benchmark more configurable.
...
SVN revision: 41183
2009-06-24 12:48:33 +00:00
Cedric BAIL
0c9aead634
Evas_Rectangle are gone. We now use Eina_Rectangle and memory pool is
...
shared accross the application.
SVN revision: 41170
2009-06-23 13:57:27 +00:00
Vincent Torri
9110d8d574
fix a bit the documentation, but there are still
...
a lot of doc to write...
SVN revision: 41164
2009-06-22 20:03:58 +00:00
Vincent Torri
3ecc808ae2
remove documentation on how to build eina with static mempools
...
SVN revision: 41161
2009-06-22 17:38:56 +00:00
Cedric BAIL
b8e164fb01
* eina_rectangle: Fix typo.
...
SVN revision: 41158
2009-06-22 13:46:05 +00:00
Cedric BAIL
5c5cb1fdb1
* eina: Add a benchmark for eina_rectangle_pool.
...
SVN revision: 41157
2009-06-22 13:24:13 +00:00
Cedric BAIL
4fa66bcae9
* eina: Evas_Data are gone so unactivate benchmark.
...
SVN revision: 41156
2009-06-22 13:20:29 +00:00
Cedric BAIL
af1e7f5dc9
* eina: Fix API naming for eina_rectangle and add a global allocator.
...
SVN revision: 41155
2009-06-22 13:16:51 +00:00
Gustavo Sverzut Barbieri
4eb71900a2
and rename static linkage as well.
...
SVN revision: 41131
2009-06-20 16:31:15 +00:00
Vincent Torri
ddee121285
i forgot to rename file...
...
SVN revision: 41126
2009-06-20 10:17:37 +00:00
Vincent Torri
8021f6beeb
formatting
...
SVN revision: 41120
2009-06-20 06:47:03 +00:00
Vincent Torri
8909bb6b69
* All memory pools can be enabled / disabled
...
* Allow to pass 'static' to configure memory pools
* Add fixed_bitmap in the possible statically linked memory pools
For example:
./configure --enable-chained-pool=static --disable-fixed-bitmap
SVN revision: 41119
2009-06-20 06:42:32 +00:00
Cedric BAIL
7a18ab5ebc
* eina: Add an eina_hash_stringshare_new.
...
SVN revision: 41112
2009-06-19 14:44:23 +00:00
Cedric BAIL
bba26ef811
* eina: Improve eina hash manipulation for int.
...
- Faster int key comparison.
- Key Length callback could now be NULL and 0 will be assumed.
SVN revision: 41100
2009-06-18 12:08:52 +00:00
Lars Munch
7bcbe02a3e
Use correct module extension on cygwin
...
Patch from: booleanlabel at gmail dot com. Thanks.
SVN revision: 41094
2009-06-18 04:06:34 +00:00
Cedric BAIL
3f064e8818
* AUTHORS: Update to reflect new contribution from Albin.
...
SVN revision: 41076
2009-06-17 12:41:48 +00:00
Gustavo Sverzut Barbieri
32ff1f0aa4
better error setting and reporting in module loading.
...
* just set error codes if we know the error.
* debug dlopen() error using EINA_ERROR_PDBG()
SVN revision: 41057
2009-06-16 14:59:09 +00:00
Carsten Haitzler
9394f73104
back to svn soname
...
SVN revision: 41042
2009-06-15 06:29:43 +00:00
Carsten Haitzler
e81db0f5a3
make distcheck and... SNAP!
...
SVN revision: 41039
2009-06-15 05:32:49 +00:00
Gustavo Sverzut Barbieri
3d720628ce
Add DragonFly BSD and simplifies other conditions.
...
By: Joerg Sonnenberger.
SVN revision: 41020
2009-06-12 17:48:10 +00:00
Vincent Torri
320619b866
Remove trailing slash in the installation directory
...
Fix installation of the eina modules with automake 1.11
SVN revision: 41013
2009-06-12 07:35:53 +00:00
Cedric BAIL
35526933af
* eina: Remove memory leak (patch from Andre Dieb).
...
SVN revision: 40986
2009-06-09 16:02:20 +00:00
Vincent Torri
5bd14d2a05
* modify the way eina_config.h is built (see eina_config.h.in
...
and configure.ac)
* include eina_config.h explicitely in files where the macros
of eina_config.h are used
* define eina_magic_string_init() and eina_magic_string_shutdown()
even when the mugle option is set (magic disabled)
* formatting and fix in configure.ac
SVN revision: 40962
2009-06-08 08:27:33 +00:00
Gustavo Sverzut Barbieri
df58840124
do not leak module if user do not want it.
...
SVN revision: 40924
2009-06-06 22:53:03 +00:00
Vincent Torri
33cfc873ec
Fix init error handling of array, benchmark, counter,main,
...
rectangle and stringshare modules. Patch by Andre Dieb, modified
by me (formatting and fix for the Windows code in eina_counter)
SVN revision: 40915
2009-06-06 04:22:21 +00:00
Vincent Torri
46836c875f
fix documentation
...
SVN revision: 40914
2009-06-06 03:55:32 +00:00
Cedric BAIL
4de864c578
* eina: Update eina authors list.
...
SVN revision: 40893
2009-06-04 09:11:20 +00:00
Cedric BAIL
5aeb9bbe82
* Fix some init/shutdown procedure.
...
SVN revision: 40892
2009-06-04 09:02:29 +00:00
Gustavo Sverzut Barbieri
7b7ece4046
fix debian rules files.
...
* fix the way AC_INIT macros are parsed to consider [] as well.
* set both LDFLAGS and CFLAGS on the libs I use and I know support -fvisibility=hidden.
SVN revision: 40838
2009-05-26 17:34:53 +00:00
Cedric BAIL
c38a387a05
* eina: Patch from Albin Tonnerre that add a new accessor for Inlist container.
...
SVN revision: 40726
2009-05-18 14:49:57 +00:00
Vincent Torri
8b6f8ea2d8
underquoted parameters of AC_INIT
...
SVN revision: 40651
2009-05-15 08:12:38 +00:00
Vincent Torri
983479952f
update efl_doxygen.m4
...
SVN revision: 40650
2009-05-15 08:11:51 +00:00
Vincent Torri
221882c996
don't use the release stuff for Windows CE
...
SVN revision: 40624
2009-05-13 18:42:40 +00:00
Gustavo Sverzut Barbieri
ebeabe3735
enable adding just part of a string.
...
this allows us to add stringshare from a larger buffer that cannot be
modified.
SVN revision: 40516
2009-05-06 04:11:01 +00:00
Davide Andreoli
de2cd99b4b
* New style for Eina Doxy... now lets see what will happend with the online generation ;)
...
SVN revision: 40467
2009-04-29 21:44:33 +00:00
Daniel Kolesa
f53053c1ca
Missing build-deps
...
SVN revision: 40446
2009-04-28 16:38:18 +00:00
Carsten Haitzler
8e52d827ec
move to uses no []'s as it works for me, but for belem... inconsistent []'s
...
doesnt work.
SVN revision: 40300
2009-04-23 00:32:53 +00:00
Daniel Kolesa
875d89a9fe
Updated debian stuff for core EFL. Changed debian stuff of others to work with core EFL updates.
...
SVN revision: 40292
2009-04-22 16:37:17 +00:00
Carsten Haitzler
9d18df3109
and incriment to next rev.
...
SVN revision: 40285
2009-04-22 14:08:21 +00:00
Carsten Haitzler
99ccf484f8
snapworth quality - distchecked. sonames bumped. rev's bumped. tarballs
...
uploaded.
SVN revision: 40284
2009-04-22 14:07:05 +00:00
Daniel Kolesa
7a07300a77
Updated changelogs for packages which will go into repository.
...
SVN revision: 40270
2009-04-21 17:39:20 +00:00
Carsten Haitzler
e39dc41493
1. embryo shoudl have soname
...
2. yes local.conf slipped in - ignore
3. added soname version release to module arch dirs
4. adapted extra-modules to use the revision in arch
5. made e17 also have a release rev
6. dummy release stuff in eet - wont use it as its already released.
SVN revision: 40267
2009-04-21 14:17:42 +00:00
Daniel Kolesa
c06e55cc1b
Merged with pkgE
...
SVN revision: 40226
2009-04-19 16:22:00 +00:00
Daniel Kolesa
5d5d17960d
Prepared for merge with pkgE debian stuff
...
SVN revision: 40225
2009-04-19 16:18:41 +00:00
Vincent Torri
045986b465
fix rectangle unit test
...
SVN revision: 40158
2009-04-18 09:17:37 +00:00
Carsten Haitzler
ce5a59b7e5
lutin... release soname patch. verbose svn soname used right now
...
SVN revision: 40131
2009-04-17 10:01:45 +00:00