Vincent Torri
c9975bc818
add benchmark tutoriel
...
SVN revision: 44719
2009-12-25 11:59:40 +00:00
Vincent Torri
0fda2ab7c8
use new spinlock detection
...
SVN revision: 44718
2009-12-25 11:30:41 +00:00
Vincent Torri
ebed5f4dab
* better m4 coding
...
* improve pthread detection and add spinlock detection
SVN revision: 44717
2009-12-25 11:29:08 +00:00
Vincent Torri
a39d637027
support of Debian/kFreeBSD (FreeBSD using the glibc on top of a FreeBSD kernel)
...
SVN revision: 44597
2009-12-20 10:02:41 +00:00
Vincent Torri
29b4cccab6
include Evil.h so that getenv is declared on Windows CE
...
SVN revision: 44563
2009-12-19 10:30:49 +00:00
Cedric BAIL
63d651b7ad
* eina: Improve precision of f32p32 sinus/cosinus.
...
SVN revision: 44322
2009-12-09 13:03:23 +00:00
Vincent Torri
04a156cda0
useless variable if pthread is not used
...
SVN revision: 44319
2009-12-09 08:34:09 +00:00
Vincent Torri
efc50c5541
including Evil.h here cause big troubles with vc++ and EAPI. So
...
typedef here the needed types
SVN revision: 44318
2009-12-09 08:25:58 +00:00
Vincent Torri
63610435c3
add always config.h in source file so that EAPI is correctly defined,
...
especially on Windows (otherwise, ICE in gcc... and vc++ is not
happy at all)
SVN revision: 44317
2009-12-09 08:23:34 +00:00
Vincent Torri
abe9190501
fix parenthesis order. Thanks, vc++ !! :p
...
SVN revision: 44316
2009-12-09 08:20:37 +00:00
Vincent Torri
4866755a1c
add eina_fp.c in visual studio project files
...
SVN revision: 44315
2009-12-09 08:17:38 +00:00
Carsten Haitzler
1f5c54b2f4
shut up llabs!
...
SVN revision: 44312
2009-12-09 07:25:41 +00:00
Cedric BAIL
274ab1e01e
* eina: Add sin and cos fixed point fonction.
...
SVN revision: 44287
2009-12-08 18:30:41 +00:00
Cedric BAIL
b6183fe571
* eina: Fix negativ case and handle div with more accuracy.
...
SVN revision: 44281
2009-12-08 16:02:10 +00:00
Cedric BAIL
78d547c505
* eina: Fix precision of eina_f32p32_div.
...
SVN revision: 44252
2009-12-07 17:48:40 +00:00
Vincent Torri
cee693572e
* Fix compilation with vc++
...
* Fix Visual Studio project files
SVN revision: 44250
2009-12-07 17:15:28 +00:00
Cedric BAIL
759426ceda
* eina: Fix atofp when exponent is negativ.
...
SVN revision: 44244
2009-12-07 13:08:16 +00:00
Cedric BAIL
5a5d81812c
* eina_fp: Fix rounding with Eina_F32p32 multiplaction, add
...
operation to multiply a FP with an int.
SVN revision: 44238
2009-12-07 09:27:53 +00:00
Vincent Torri
c8ecbbfeef
fix ticket #466
...
SVN revision: 44185
2009-12-04 11:37:42 +00:00
Cedric BAIL
1f1fac5a61
* eina: Add more test.
...
Code covered by all tests :
Found Hit Coverage
Lines: 4503 3671 81.5 %
Functions: 392 347 88.5 %
SVN revision: 44183
2009-12-04 10:09:08 +00:00
Cedric BAIL
8cc84b4f8b
* eina: Add more tests specific to rectangle.
...
SVN revision: 44182
2009-12-04 09:39:23 +00:00
Cedric BAIL
1d0efd8c18
* eina: Add more test. eina_tiler and eina_rectangle need some more.
...
SVN revision: 44176
2009-12-03 18:17:37 +00:00
Carsten Haitzler
c15a501be8
baack to normal pre- release name now
...
SVN revision: 44146
2009-12-02 22:50:36 +00:00
Carsten Haitzler
fce5dfd209
quick make svnrev that has right release names
...
SVN revision: 44140
2009-12-02 22:19:53 +00:00
Vincent Torri
c49470eb80
fix compilation from scratch
...
Don't put anything before AC_INIT (except AC_PREREQ) if used in configure.ac
SVN revision: 44122
2009-12-02 18:46:01 +00:00
Carsten Haitzler
e62d6e6dd2
and back to a pre-svn sonme after snap
...
SVN revision: 44118
2009-12-02 08:07:38 +00:00
Carsten Haitzler
566f8b2656
aaah bah - move to 05 not 04
...
SVN revision: 44116
2009-12-02 07:40:59 +00:00
Carsten Haitzler
799b9b0fac
asparagus - finally
...
SVN revision: 44113
2009-12-02 07:22:35 +00:00
Gustavo Sverzut Barbieri
4e817e8ecd
eina_module: more constness.
...
Thanks to Fabiano Fidencio for spotting those.
SVN revision: 43921
2009-11-23 13:24:48 +00:00
Gustavo Sverzut Barbieri
d2fd0b36e0
eina_module_find: constness and gcc attribute.
...
Mark both array and module as const as we'll not modify them anyhow
inside this function.
Also mark this function as pure, so gcc will know how to optimize
multiple calls of it. Not that important for this function, but
doesn't hurt either.
SVN revision: 43918
2009-11-23 13:20:34 +00:00
Cedric BAIL
ffb0bf8830
* eina_module: Add eina_module_find. Thanks to Fabiano Fidêncio <fidencio@profusion.mobi>.
...
SVN revision: 43847
2009-11-20 20:46:24 +00:00
Vincent Torri
797833357f
stupid AC_CHECK_PROG
...
SVN revision: 43800
2009-11-19 09:02:25 +00:00
Vincent Torri
d3135f8f27
minor fix
...
SVN revision: 43797
2009-11-19 08:29:22 +00:00
Vincent Torri
5fb84741eb
i forgot to align the result
...
SVN revision: 43688
2009-11-14 08:43:18 +00:00
Vincent Torri
df8d276b83
better configure output
...
If nobody is against it, i'll change the configure output
of the EFL so that it is the same
SVN revision: 43687
2009-11-14 08:40:11 +00:00
Cedric BAIL
899b488741
* eina: Now it's possible set a level when eina should abort on log.
...
SVN revision: 43669
2009-11-13 17:52:43 +00:00
Gustavo Sverzut Barbieri
7df346f50e
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.
SVN revision: 43634
2009-11-12 19:41:02 +00:00
Raoul HECKY
279e0dde28
Initialize value for correct counting of # cpu on macosx
...
SVN revision: 43571
2009-11-09 10:39:49 +00:00
Raoul HECKY
7eb75cbd63
Add __MACH__ and __APPLE__ guards to compile on macosx
...
SVN revision: 43568
2009-11-09 09:07:10 +00:00
Sebastian Dransfeld
a60aeb07a3
function defined as void, don't return a value
...
SVN revision: 43535
2009-11-08 19:52:31 +00:00
Vincent Torri
12f9e2f515
fix compilation on OpenBSD
...
SVN revision: 43516
2009-11-07 19:44:39 +00:00
Vincent Torri
2ccaf85b59
fix compilation of eina_amalgamation.c on Windows
...
SVN revision: 43513
2009-11-07 16:09:58 +00:00
Vincent Torri
7c24994f18
fix dist/distcheck rule
...
SVN revision: 43474
2009-11-06 01:02:35 +00:00
Vincent Torri
c3c217c20f
add pthread support on Windows
...
SVN revision: 43435
2009-11-03 16:53:21 +00:00
Vincent Torri
a4d3d53e0d
disable amalgamation by default
...
SVN revision: 43434
2009-11-03 16:52:45 +00:00
Jonathan Atton
cbe78d32f2
Eina log : check main thread in eina_log_threads_shutdown
...
SVN revision: 43415
2009-11-02 10:08:57 +00:00
Vincent Torri
199400bc7d
remove useless $(builddir)/ (also confirmed by a autoconf dev),
...
as anyway, '$(builddir)' is always '.' make distcheck passes.
Thanks to cantona who reported it.
SVN revision: 43401
2009-11-01 21:00:22 +00:00
Jonathan Atton
9191a1dfa3
Eina: renawe _threads_activated for amalgation
...
SVN revision: 43400
2009-11-01 20:13:12 +00:00
Jonathan Atton
4bfc091f41
Eina : add a prefix to STRINGSHARE_LOCK and LOG_LOCK
...
SVN revision: 43399
2009-11-01 20:09:26 +00:00
Jonathan Atton
6ea6dc0856
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
...
SVN revision: 43398
2009-11-01 19:50:18 +00:00
Christopher Michael
e867666096
Add missing lib check for fnmatch.
...
SVN revision: 43328
2009-10-28 13:04:09 +00:00
Christopher Michael
f6da7fc383
Patch configure.ac to check for fnmatch header.
...
Thanks Vincent :)
SVN revision: 43327
2009-10-28 13:00:59 +00:00
Christopher Michael
af793b05d5
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)
SVN revision: 43326
2009-10-28 12:48:04 +00:00
Jonathan Atton
cc1863fc96
Eina: add eina_list_split_list()
...
SVN revision: 43307
2009-10-27 10:26:20 +00:00
Carsten Haitzler
b2228247e1
warning--
...
SVN revision: 43259
2009-10-25 08:57:41 +00:00
Carsten Haitzler
f78bded776
warning--
...
SVN revision: 43258
2009-10-25 08:52:47 +00:00
Carsten Haitzler
ca7859168b
shh warning
...
SVN revision: 43257
2009-10-25 08:45:36 +00:00
Iván Briano
044f05ca69
Fix docs for hash_free
...
SVN revision: 43237
2009-10-24 04:30:52 +00:00
Cedric BAIL
96437266c8
* eina: Fix EINA_LIST_REVERSE_FOREACH_SAFE typo from Gustavo Chaves.
...
SVN revision: 43186
2009-10-21 19:02:52 +00:00
Vincent Torri
568f723401
Add some more headers at the top of eina_amalgamation.c.
...
Fix compilation on Windows CE
SVN revision: 43054
2009-10-13 17:14:50 +00:00
Cedric BAIL
a9413206ef
* eina_hash: First parameter could be NULL.
...
SVN revision: 43053
2009-10-13 17:11:58 +00:00
Cedric BAIL
17c820aef7
* eina: This initialisation is not needed, but will reduce llvm warning noise.
...
SVN revision: 42935
2009-10-07 12:06:52 +00:00
Vincent Torri
5bb258d05a
* 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
SVN revision: 42905
2009-10-06 16:54:08 +00:00
Vincent Torri
aa56214d0b
Fix compilation on Windows wrt changes in fixed point code
...
SVN revision: 42822
2009-09-30 17:29:30 +00:00
Cedric BAIL
7a51d7bf39
* eina: Cleanup Eina fixed point implementation.
...
SVN revision: 42798
2009-09-29 12:04:50 +00:00
Cedric BAIL
5022bcf21b
* eina: Fix doc layout.
...
SVN revision: 42796
2009-09-29 09:53:41 +00:00
Rafael Antognolli
ea4efcb441
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.
SVN revision: 42783
2009-09-28 20:03:56 +00:00
Vincent Torri
70ba1f22fd
and AC_SUBST the requirement...
...
SVN revision: 42703
2009-09-25 15:43:41 +00:00
Vincent Torri
47e25ab257
* really export symbols on Windows (EFL_EINA_BUILD not
...
correctly defined)
* add evil in the Requires.private field of eina-0.pc.in
SVN revision: 42702
2009-09-25 15:39:53 +00:00
Cedric BAIL
568acf4705
* eina_atofp: Always return EINA_TRUE on valid input string.
...
SVN revision: 42700
2009-09-25 12:02:14 +00:00
Vincent Torri
1079703690
return false if fp is NULL, update doc accordingly
...
SVN revision: 42699
2009-09-25 11:51:52 +00:00
Cedric BAIL
340ac0ee30
* eina: Fix build without amalgamation.
...
SVN revision: 42698
2009-09-25 11:36:56 +00:00
Vincent Torri
b2bda6edb2
* convert string to fp only if fp is not NULL
...
* add doc of eina_convert_atofp()
* minor doc cleanup
SVN revision: 42697
2009-09-25 11:23:37 +00:00
Cedric BAIL
6a284f8178
* eina: Add eina_atofp.
...
SVN revision: 42694
2009-09-25 10:03:19 +00:00
Vincent Torri
7c47dc2c65
* add documentation for eina_convert_fptoa()
...
* fix typo in doc
SVN revision: 42691
2009-09-25 08:44:04 +00:00
Cedric BAIL
a0cf367269
* eina: Improve eina_fptoa test.
...
SVN revision: 42648
2009-09-23 16:57:59 +00:00
Cedric BAIL
4ddba5724d
* eina: Add eina_fptoa.
...
This is a small piece of code, but a big one for an edje fixed point implementation.
SVN revision: 42646
2009-09-23 16:47:08 +00:00
Vincent Torri
3e74ea2ad3
configure eina with VS according to the used mode (debug or release)
...
SVN revision: 42625
2009-09-22 22:28:35 +00:00
Vincent Torri
a7293d0cda
add README.txt and MANIFEST.txt files
...
SVN revision: 42526
2009-09-16 20:23:11 +00:00
Vincent Torri
e2b34b41ee
* fix compilation on Windows when using amalgamation
...
* put alloca declaration at the beginning
SVN revision: 42517
2009-09-16 17:22:01 +00:00
Vincent Torri
c1f402b6fc
* allow compilation with vc++
...
* fix a small warning
SVN revision: 42513
2009-09-16 13:38:21 +00:00
Vincent Torri
49ac7ebc95
* update Visual Studio project files:
...
- link against evil
- eina mempools are statically linked
* formatting in start.bat
SVN revision: 42512
2009-09-16 13:31:23 +00:00
Vincent Torri
d14efa7613
* add Visual Studio 2008 project
...
* use a single start file to launch Visual Studio 2005 or 2008 automatically
SVN revision: 42510
2009-09-16 11:32:24 +00:00
Gustavo Sverzut Barbieri
5b68d0be34
minor fixes.
...
SVN revision: 42504
2009-09-15 22:32:24 +00:00
Vincent Torri
06cb4ebf40
update Visual Studio project
...
SVN revision: 42501
2009-09-15 21:20:56 +00:00
Vincent Torri
9b9c496175
move the declaration of variables at the beginning of the block
...
SVN revision: 42499
2009-09-15 21:20:08 +00:00
Vincent Torri
0ba193bae0
move EINA_DEPRECATED at the beginning of the declaration,
...
because it's more visible, and vc++ does not like it at
the end.
SVN revision: 42498
2009-09-15 21:19:15 +00:00
Cedric BAIL
8e6a393cf9
* eina_log: Fallback to mutex when spinlock doesn't exist.
...
SVN revision: 42489
2009-09-14 16:06:18 +00:00
Cedric BAIL
d117093a55
* eina: Add explanation around compiler false positiv warning.
...
SVN revision: 42488
2009-09-14 15:28:55 +00:00
Rafael Antognolli
52de9e33cd
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.
SVN revision: 42427
2009-09-11 23:51:47 +00:00
Gustavo Sverzut Barbieri
7d1745e3c1
constness++
...
SVN revision: 42426
2009-09-11 23:10:57 +00:00
Gustavo Sverzut Barbieri
f98cb6e5f5
fix lighblue and add cyan.
...
SVN revision: 42410
2009-09-11 14:22:24 +00:00
Horms
bef3c68926
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
SVN revision: 42378
2009-09-10 02:44:05 +00:00
Horms
fd13f43a81
Update libeina-svn-01 to libeina-svn-04
...
SVN revision: 42377
2009-09-10 02:41:40 +00:00
Horms
19afb9e363
Remove bogus mmu debian-version
...
SVN revision: 42376
2009-09-10 02:32:47 +00:00
Horms
7ac04b3860
Update version in Debian changelog to 0.0.2.62
...
SVN revision: 42375
2009-09-10 02:31:36 +00:00
Horms
0d0e486d54
Update Debian standards version from 3.8.1 to 3.8.3
...
SVN revision: 42374
2009-09-10 01:41:41 +00:00
Rafael Antognolli
0e716d559b
EINA: Fix compilation when builddir != srcdir.
...
SVN revision: 42369
2009-09-09 20:37:23 +00:00
Iván Briano
bbce7b5e0d
Avoid clashes.
...
SVN revision: 42368
2009-09-09 15:53:50 +00:00
Iván Briano
555de0f914
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.
SVN revision: 42366
2009-09-09 14:05:31 +00:00
Vincent Torri
2d3021f128
* 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'
SVN revision: 42363
2009-09-09 07:42:08 +00:00
Gustavo Sverzut Barbieri
d909319998
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).
SVN revision: 42360
2009-09-09 01:53:40 +00:00
Gustavo Sverzut Barbieri
93b28743c5
remove warnings from tests.
...
SVN revision: 42359
2009-09-09 01:41:29 +00:00
Gustavo Sverzut Barbieri
2de7c52bd1
remove easy warnings, 2 still left that I need someone else to check
...
proper fix.
SVN revision: 42358
2009-09-09 01:27:30 +00:00
Gustavo Sverzut Barbieri
88730b324d
let's have more testing: amalgamation on by default, report problems!
...
SVN revision: 42356
2009-09-09 00:38:26 +00:00
Gustavo Sverzut Barbieri
c98bf92366
replace UNLIKELY() with EINA_UNLIKELY()
...
SVN revision: 42354
2009-09-08 21:42:17 +00:00
dieb
073dd0542c
Fix segv reported by Peter Wehrfritz on eina init/shutdown (specifically on
...
eina_log init/shutdown as it wasn't resetting domains counters properly).
SVN revision: 42334
2009-09-07 23:23:03 +00:00
Gustavo Sverzut Barbieri
9b3e482ad2
--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.
SVN revision: 42315
2009-09-07 05:54:42 +00:00
Gustavo Sverzut Barbieri
b84e3424fe
use quotes to include config.h
...
SVN revision: 42314
2009-09-07 04:32:49 +00:00
Gustavo Sverzut Barbieri
bda2733238
fix message
...
SVN revision: 42313
2009-09-07 04:29:27 +00:00
Gustavo Sverzut Barbieri
8318f4c1f2
allow amalgamation of files, at least symbols don't clash anymore.
...
more related to amalgamation later.
SVN revision: 42312
2009-09-07 04:23:05 +00:00
Gustavo Sverzut Barbieri
a4bd77905d
malloc--: error and magic can take statically defined strings so no
...
need to strdup them.
SVN revision: 42311
2009-09-07 03:32:22 +00:00
Gustavo Sverzut Barbieri
404e3e09fb
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.
SVN revision: 42310
2009-09-07 02:33:54 +00:00
Gustavo Sverzut Barbieri
4baa70798c
eina_inlist.h is not required anymore.
...
SVN revision: 42305
2009-09-06 22:56:34 +00:00
Gustavo Sverzut Barbieri
777e74ce7d
eina_error: improvements to make it faster.
...
Use a simple array instead of inlist, error get is now much faster
using direct index access.
SVN revision: 42304
2009-09-06 22:54:49 +00:00
Gustavo Sverzut Barbieri
f98bf21da7
allocate more buckets on init to save couple of reallocs during startup.
...
SVN revision: 42303
2009-09-06 22:34:38 +00:00
Gustavo Sverzut Barbieri
205e0fe399
fix macro positioning of '\'
...
SVN revision: 42302
2009-09-06 22:25:36 +00:00
Gustavo Sverzut Barbieri
e4af7c100c
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!
SVN revision: 42300
2009-09-06 22:21:56 +00:00
Vincent Torri
718873e00c
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().
SVN revision: 42292
2009-09-06 15:25:35 +00:00
Vincent Torri
e780763aa0
shutdown array module
...
SVN revision: 42287
2009-09-06 08:39:04 +00:00
Gustavo Sverzut Barbieri
5846195caf
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.
SVN revision: 42272
2009-09-04 23:45:16 +00:00
Gustavo Sverzut Barbieri
86aa8a433b
mark log functions as not_instrument_function.
...
SVN revision: 42270
2009-09-04 21:55:03 +00:00
Gustavo Sverzut Barbieri
b5397eea63
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.
SVN revision: 42269
2009-09-04 21:28:50 +00:00
Vincent Torri
1d7608daaa
fix coverage support configuration
...
SVN revision: 42250
2009-09-04 16:55:51 +00:00
Vincent Torri
5e05323794
include eina_log.h in eina_error.h as some log macro are used in it
...
SVN revision: 42249
2009-09-04 16:54:38 +00:00
Vincent Torri
d56568b7f9
eina_log uses pthreads now (if enabled), so link libeina against pthread
...
SVN revision: 42248
2009-09-04 16:25:18 +00:00
Gustavo Sverzut Barbieri
eef2d35ea6
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
SVN revision: 42246
2009-09-04 14:18:05 +00:00
Gustavo Sverzut Barbieri
643958705b
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 ;-)
SVN revision: 42243
2009-09-04 13:43:44 +00:00
Gustavo Sverzut Barbieri
e88b62b295
oops! thanks Vincent.
...
SVN revision: 42230
2009-09-04 03:52:05 +00:00
Gustavo Sverzut Barbieri
4d5fbb7742
loggify array.
...
this is the last eina module to be converted to eina_log! :-)
SVN revision: 42228
2009-09-04 02:35:24 +00:00
Gustavo Sverzut Barbieri
5ea9ceeafc
eina_module must initialize eina_array as it is used.
...
SVN revision: 42227
2009-09-04 02:34:48 +00:00
Gustavo Sverzut Barbieri
dfee09d6b0
make it easier to spot wrong users of eina_log_print()
...
SVN revision: 42226
2009-09-04 02:34:10 +00:00
Gustavo Sverzut Barbieri
9f8dfea129
loggify rectangle.
...
SVN revision: 42225
2009-09-04 02:11:44 +00:00
Gustavo Sverzut Barbieri
04489ec727
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).
SVN revision: 42224
2009-09-04 02:03:46 +00:00
Gustavo Sverzut Barbieri
21545b087a
loggify stringshare.
...
SVN revision: 42223
2009-09-04 01:54:37 +00:00
Gustavo Sverzut Barbieri
ecbff0cb75
loggify main.
...
SVN revision: 42222
2009-09-04 01:48:36 +00:00
Gustavo Sverzut Barbieri
8a2c84631c
loggify list.
...
SVN revision: 42221
2009-09-04 01:43:50 +00:00
Gustavo Sverzut Barbieri
8ca1675c51
eina_error: deprecated old logging, move to eina_log.
...
SVN revision: 42220
2009-09-04 01:37:11 +00:00
Gustavo Sverzut Barbieri
2406791660
loggify benchmark.
...
SVN revision: 42219
2009-09-04 01:19:19 +00:00
Gustavo Sverzut Barbieri
dac152772f
loggify mempool.
...
SVN revision: 42218
2009-09-04 01:13:49 +00:00
Gustavo Sverzut Barbieri
253a9623e9
loggify eina_convert.
...
SVN revision: 42217
2009-09-04 01:03:27 +00:00
Gustavo Sverzut Barbieri
eeb2d38d38
eina_log_vprint() for those that want to wrap it in other functions.
...
SVN revision: 42216
2009-09-04 00:57:09 +00:00
Gustavo Sverzut Barbieri
0dd3836c56
missing file, sorry.
...
SVN revision: 42215
2009-09-04 00:56:16 +00:00
Gustavo Sverzut Barbieri
07d2bde900
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.
SVN revision: 42214
2009-09-04 00:53:19 +00:00
Gustavo Sverzut Barbieri
4d37971d60
eina_safety_checks now uses eina_log.
...
SVN revision: 42213
2009-09-03 23:36:27 +00:00
Gustavo Sverzut Barbieri
cee03dcb3c
eina_log: CONVENTION BREAK!!!! automatically adds \n
...
Automatically add \n to messages. Since we use that prefix, there is
no use to allow messages without \n, it would look a mess.
Some logging systems may not require the trailing newline, for example
logging to xml or syslog, for those you don't need to ignore this char
if present.
Yes, this breaks convention, but better now than latter. And the
results are not so bad.
SVN revision: 42200
2009-09-03 01:39:45 +00:00
Gustavo Sverzut Barbieri
8024360138
eina_log: thread safe logging!
...
eina_log_threads_enable() and then get thread safe logging with
non-main threads being printed with special notation to easily spot
those.
SVN revision: 42199
2009-09-03 01:31:26 +00:00
Gustavo Sverzut Barbieri
d8ee1b3a24
eina_log: fix error handling and handle deleted domains.
...
EINA_SAFETY_CHECKS will call eina_log, so calling these from inside
eina_log_print() may lead to recursion, that is really bad (although
it seems it would never lead to infinite recursion).
handle d->deleted, also showing error.
SVN revision: 42198
2009-09-03 00:17:27 +00:00
Gustavo Sverzut Barbieri
9fb9b1259d
eina_log: fix stderr, improve log output.
...
* stderr logger was doing prefix properly but user message to stdout, fixed.
* log is improved:
* grep-able, it shows the 3 letter level name as prefix, unknown levels
will have their number printed.
* colors just on prefix, less polluted output still easy to spot.
* function names are highlighted.
SVN revision: 42197
2009-09-03 00:07:25 +00:00
Gustavo Sverzut Barbieri
418c99a8e3
eina_log improvements: docs, micro optimizations and stderr logging by default.
...
* more docs.
* do not getenv("EINA_LOG_ABORT") everytime, just at init.
* EINA_UNLIKELY() in some critical paths (not that big impact anyway)
* eina_log_print_cb_stderr() and use it by default.
SVN revision: 42196
2009-09-02 23:28:00 +00:00
Gustavo Sverzut Barbieri
bb717a3be5
less malloc and memory fragmentation.
...
not that important, but an easy improvement does not hurt.
SVN revision: 42195
2009-09-02 23:11:22 +00:00
Gustavo Sverzut Barbieri
2f8ded1037
loggify eina_module, adding couple of debug info.
...
SVN revision: 42194
2009-09-02 23:06:55 +00:00
Gustavo Sverzut Barbieri
c1e2a300e4
coding style/indent.
...
SVN revision: 42193
2009-09-02 22:39:41 +00:00
Cedric BAIL
49cb141f10
* eina_magic: Test suite now work when magic debug is disabled.
...
SVN revision: 42150
2009-09-01 12:17:13 +00:00
dieb
7eff1d432b
Remove legacy error code definition from eina log.
...
SVN revision: 42126
2009-08-31 14:40:48 +00:00
Cedric BAIL
2bc38ddb92
* eina: Add more FP type (f8p24 and f32p32).
...
SVN revision: 42124
2009-08-31 13:52:17 +00:00
Vincent Torri
8f53c520a4
typo
...
SVN revision: 42091
2009-08-29 20:53:12 +00:00
Vincent Torri
2a5548f8e9
better fix : if HW_AVAILCPU is defined, we use it, otherwise we use HW_NCPU
...
SVN revision: 42090
2009-08-29 19:59:26 +00:00
Vincent Torri
841aaa8f52
typo
...
SVN revision: 42089
2009-08-29 19:29:30 +00:00
Vincent Torri
9f01ad25cf
fix for the BSD systems
...
SVN revision: 42088
2009-08-29 16:39:59 +00:00
Vincent Torri
72b87160a2
* add eina_config.h in all source files. Fix linking with Visual Studio
...
* move eina_private.h and eina_safety_checks.h just after eina_config.h
SVN revision: 42077
2009-08-28 12:03:34 +00:00
Carsten Haitzler
c1e675d669
fix copying to 2.1 again and keep static linking clause
...
SVN revision: 42075
2009-08-28 11:30:35 +00:00
Carsten Haitzler
1c58a8b3f3
static linking exception
...
SVN revision: 42073
2009-08-28 11:17:59 +00:00
Vincent Torri
42918e0b9e
rename the dll name created by VS
...
SVN revision: 42068
2009-08-28 09:51:39 +00:00
Vincent Torri
2678846b95
rename project name and filename
...
SVN revision: 42064
2009-08-28 07:34:58 +00:00
Vincent Torri
5612cf9020
* declare variables at the beginning of the block
...
* strtol returns a long int
SVN revision: 42063
2009-08-28 07:21:35 +00:00
Vincent Torri
bc6ee8c17a
fix warning with vc++
...
SVN revision: 42062
2009-08-28 07:15:49 +00:00
Vincent Torri
0de03a3f2b
update Visual Studio project even more
...
SVN revision: 42059
2009-08-28 06:20:15 +00:00
Vincent Torri
bede23211d
update Visual Studio project
...
SVN revision: 42058
2009-08-28 06:15:35 +00:00
dieb
7bc6284e09
Fix compilation issue reported by Vincent on Windows (stdint and c++ compiler), setup a negative value for flagging the unknown level.
...
SVN revision: 42049
2009-08-27 21:32:42 +00:00
dieb
c891a34a08
Add eina_log module into the main module and global header.
...
SVN revision: 41985
2009-08-25 21:26:27 +00:00
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
Daniel Kolesa
cd8dd91b01
Updated debian stuff(grew Standards-Version, updated python-ecore rules file)
...
SVN revision: 40043
2009-04-14 17:21:19 +00:00
Viktor Kojouharov
b2eeca9783
fix docu
...
SVN revision: 39989
2009-04-11 16:59:39 +00:00
Daniel Kolesa
c2cc688e9e
Added doxygen to eina deps in debian
...
SVN revision: 39922
2009-04-10 09:05:24 +00:00
Cedric BAIL
5016004597
* eina_rectangle: Use a mempool to reduce memory allocation.
...
SVN revision: 39909
2009-04-09 15:51:32 +00:00
Carsten Haitzler
1c00a019e9
new -> news. people with g++ using eina in their c++ stuff will be most
...
un-amused by the use of a variable called "new".
SVN revision: 39905
2009-04-09 05:55:51 +00:00
Gustavo Sverzut Barbieri
2e9a9a9700
eina_stringshare_replace() gets in!
...
I was replicating this code in many places, it should go into eina itself.
It's the right way to change strings that you don't know are
stringshared before, since it will first add a reference and then
remove, making it impossible to have references to go 0 and string
being released before adding new references, fixing the following
possible problem:
x = eina_stringshare_add("x");
replace(x, x);
then:
incorrect_replace(const char **b, const char *a) {
eina_stringshare_del(*b); /* reference gets to 0 */
eina_stringshare_add(a); /* BUG!!! */
*b = a;
}
SVN revision: 39903
2009-04-08 18:25:02 +00:00
Gustavo Sverzut Barbieri
78f4f011d0
export vargs version of eina_error_print().
...
SVN revision: 39879
2009-04-06 12:41:50 +00:00
Vincent Torri
46b3ef7d0c
Fix llvm report in eain_tiler.
...
The remaining llvm reports, in eina_rbtree.c, are not correct, I think.
SVN revision: 39710
2009-03-25 12:04:21 +00:00
Vincent Torri
18258b5721
fix llvm report in eina_stringshare
...
SVN revision: 39707
2009-03-25 10:32:33 +00:00
Vincent Torri
bda0cab9dd
fix llvm reports in eina_list
...
SVN revision: 39706
2009-03-25 09:24:56 +00:00
Daniel Kolesa
47d3a66c13
i found it is useless and cdbs is setting up prefix automatically.
...
SVN revision: 39695
2009-03-24 19:56:43 +00:00
Daniel Kolesa
510ec92901
forgot to add --prefix=/usr
...
SVN revision: 39694
2009-03-24 19:51:00 +00:00
Daniel Kolesa
1bce155f0f
Updated debian stuff everywhere.
...
SVN revision: 39693
2009-03-24 19:44:57 +00:00
Vincent Torri
309606b2dd
use variadic macros, as suggested by Gustavo
...
SVN revision: 39663
2009-03-24 07:10:46 +00:00
Vincent Torri
7e809db9c8
fix some llvm report
...
SVN revision: 39657
2009-03-23 20:36:10 +00:00
Vincent Torri
842c9843ec
Fix compilation on OpenBSD (bug #250 ). Patch by eumel.
...
SVN revision: 39627
2009-03-22 13:40:28 +00:00
Vincent Torri
2b1fe0c3b9
change the variable near to lnear, as it seems
...
that it's a keyword on Windows...
SVN revision: 39621
2009-03-22 12:22:39 +00:00
Gustavo Sverzut Barbieri
124e0c4a1b
deprecated attribute
...
SVN revision: 39597
2009-03-20 01:00:35 +00:00
Gustavo Sverzut Barbieri
21f6be2f66
constness++
...
SVN revision: 39596
2009-03-20 01:00:04 +00:00
Cedric BAIL
e027bb8a6e
* eina_list: Add a eina_list_search_sorted_near_list. Usefull if you want to build
...
a sorted list.
SVN revision: 39550
2009-03-18 15:00:52 +00:00
Cedric BAIL
9fab9595b5
* eina_list: Add eina_list_search_sorted_list and eina_list_search_unsorted_list.
...
SVN revision: 39546
2009-03-18 13:29:36 +00:00
Gustavo Sverzut Barbieri
bd6ef0cce1
add missing prototype.
...
SVN revision: 39516
2009-03-17 13:05:02 +00:00
Gustavo Sverzut Barbieri
56d1e979ce
fix docs and add clone and reversed iterator calls.
...
* docs: be clear if it's a copy or in-place.
* clone: add some apis to create a copy while operates, sort should
do the same.
* reversed iterator: new call to walk the list reversed, will make
life easier in some cases.
SVN revision: 39515
2009-03-17 12:52:38 +00:00
Gustavo Sverzut Barbieri
750bdfce3d
inlist: add count.
...
SVN revision: 39465
2009-03-13 11:32:56 +00:00
Carsten Haitzler
739db97356
1. cygwin fixes from booleanlabel@gmail.com
...
2. these are just generic fixes - so also fix 1 doc example too.
SVN revision: 39464
2009-03-13 10:53:07 +00:00
Carsten Haitzler
691aa040b9
strict-aliasing is gcc 3+ - apply to CFLAGS for libeina.
...
SVN revision: 39462
2009-03-13 10:24:45 +00:00
Jorge Luis Zapata Muga
07235befaa
+ Fix the precision when multiplying two fixed point numbers
...
SVN revision: 39307
2009-03-01 12:35:30 +00:00
Gustavo Sverzut Barbieri
e3cce7b79d
New macros, documentation and consistency for iterators and accessors.
...
EINA_ITERATOR_FOREACH() and EINA_ACCESSOR_FOREACH() are new macros to
help us forget about nasty C details (like cast to (void **)).
Document most iterators and accessors.
All iterators now set EINA_ERROR_OUT_OF_MEMORY if it's the case.
SVN revision: 39267
2009-02-27 16:32:22 +00:00
Gustavo Sverzut Barbieri
aff2f5ebcf
Add reverse iterator macros for eina list.
...
SVN revision: 39218
2009-02-25 20:19:32 +00:00
Gustavo Sverzut Barbieri
27f001875b
Fix EINA_INLIST_GET() macro.
...
now EINA_INLIST_GET(bla)->next will work, before it was like
&bla->__in_list->next
which is wrong, since __in_list is not a pointer, rather the memory itself.
SVN revision: 39210
2009-02-25 16:24:00 +00:00
Cedric BAIL
e31b5e961e
* eina/src/lib/eina_list.c: Use less code.
...
* eina/src/lib/eina_error.c: Add a way to abord on any error message.
SVN revision: 39196
2009-02-25 10:46:14 +00:00
Cedric BAIL
b496774e9e
* eina/src/include/eina_list.h: Add a macro for freeing each element of an Eina_List.
...
SVN revision: 39109
2009-02-20 16:44:26 +00:00
Vincent Torri
6b19ce16aa
set correctly the relative path of the extern directory,
...
so that it fits the one used in the tutorial.
SVN revision: 39099
2009-02-19 19:48:03 +00:00
Cedric BAIL
55cfc46ee2
* eina/m4/efl_pthread.m4,
...
* eina/src/modules/mp/chained_pool/Makefile.am,
* eina/src/modules/mp/chained_pool/eina_chained_mempool.c: Now chained mempool are thread safe.
SVN revision: 39058
2009-02-17 14:18:14 +00:00
Cedric BAIL
a98287fc07
* eina/src/lib/eina_module.c: After deleting all members, we should flush the array.
...
SVN revision: 39057
2009-02-17 12:58:09 +00:00
Cedric BAIL
2cad4f8082
* eina/src/lib/eina_array.c: Fix small typo.
...
SVN revision: 38921
2009-02-03 13:20:30 +00:00
Vincent Torri
4fc823bdc9
* fix logic in efl_doxygen.m4
...
* allow aclocal to check for modifications of the m4 macros in m4/
SVN revision: 38892
2009-02-01 20:21:56 +00:00
Vincent Torri
cda565a38e
* more doc in the tutorial of the array data type
...
* minor formatting
SVN revision: 38853
2009-01-29 23:16:23 +00:00
Jorge Luis Zapata Muga
01ea61f11d
+ Remove unlikely macro debug
...
SVN revision: 38840
2009-01-29 13:06:46 +00:00
Jorge Luis Zapata Muga
d508c49684
+ Make the tiler functions static
...
+ Make the iterator actually work: keep track of current node
SVN revision: 38833
2009-01-28 20:01:42 +00:00
Vincent Torri
8cb92a2ca4
force the files that are in the _DATA primary to be
...
distributed in the tarball
SVN revision: 38832
2009-01-28 18:00:20 +00:00
Vincent Torri
c02331ab22
formatting
...
SVN revision: 38815
2009-01-27 16:59:06 +00:00
Vincent Torri
e9908d6e42
* formatting: new lines are good for reading code
...
* remove comma after EINA_MAGIC (compilation with Visual Studio)
SVN revision: 38814
2009-01-27 16:44:45 +00:00
Vincent Torri
53f757287f
add source and header files to Visual Studio project files
...
SVN revision: 38813
2009-01-27 16:38:06 +00:00
rephorm
0f053605b9
don't leak
...
SVN revision: 38806
2009-01-27 05:11:16 +00:00
Jorge Luis Zapata Muga
e5123aac83
+ Fix for 64 bit asm
...
+ Fix for MinGW
SVN revision: 38799
2009-01-26 19:35:12 +00:00
Jorge Luis Zapata Muga
75299a9fa3
+ Add eina_cpu subsystem: just query cpu simd operations for now.
...
+ Add eina_tiler subsystem: initially abstraction and import of gustavo's splitter code.
SVN revision: 38793
2009-01-26 16:27:00 +00:00
Jorge Luis Zapata Muga
40d9cab09a
+ Fix some english typos
...
+ Fix some macros that need an expression and there are no attributes support, just pass the expression as is
SVN revision: 38792
2009-01-26 16:23:07 +00:00
Cedric BAIL
1caa0562ad
Add new set of usefull fonctions for eina list.
...
SVN revision: 38791
2009-01-26 14:46:02 +00:00
Vincent Torri
8bee601e8d
fix warnings with vc++
...
SVN revision: 38744
2009-01-23 18:24:35 +00:00
Vincent Torri
092927d13e
add eina_main.h in vc project
...
SVN revision: 38742
2009-01-23 16:44:25 +00:00
Vincent Torri
29befb161d
put macro after declarations, otherwise vc++ is not happy
...
SVN revision: 38741
2009-01-23 16:43:14 +00:00
Vincent Torri
c166854ae1
* minor formatting
...
* add some doc in eina_array
* in eina_main.c, include only the necessary headers
* fix some warnings (size_t <-> int)
SVN revision: 38740
2009-01-23 16:11:45 +00:00
Vincent Torri
da4cbd5c95
put eina_init() and eina_shutdown() in their own header file
...
SVN revision: 38738
2009-01-23 14:46:56 +00:00
Cedric BAIL
f0096a167c
* eina/src/include/eina_private.h: better use do {} while(0);
...
* eina/src/lib/eina_array.c: Use gcc attribute to shutdown llvm warning.
SVN revision: 38666
2009-01-20 16:47:19 +00:00
Vincent Torri
7554db7669
too much alloca declarations :-)
...
SVN revision: 38665
2009-01-20 16:14:36 +00:00
Cedric BAIL
0dda30daf6
* eina/src/include/eina_array.h,
...
* eina/src/include/eina_f16p16.h,
* eina/src/include/eina_accessor.h,
* eina/src/include/eina_list.h,
* eina/src/include/eina_iterator.h,
* eina/src/lib/eina_rectangle.c,
* eina/src/lib/eina_list.c,
* eina/src/lib/eina_array.c,
* eina/src/lib/eina_hash.c,
* eina/src/lib/eina_module.c,
* eina/src/lib/eina_stringshare.c,
* eina/src/lib/eina_benchmark.c: Fix for windows compilation.
SVN revision: 38663
2009-01-20 15:56:48 +00:00
Cedric BAIL
8a380803a7
* eina/src/include/eina_private.h,
...
* eina/src/lib/eina_array.c: Remove potential error detected by llvm in eina_array.
SVN revision: 38662
2009-01-20 15:44:52 +00:00
Cedric BAIL
57aadc71fd
Remove warning.
...
SVN revision: 38661
2009-01-20 15:42:34 +00:00
Cedric BAIL
3c2f745ab9
Fix wrong order and useless double include.
...
SVN revision: 38660
2009-01-20 15:40:36 +00:00
Vincent Torri
0d166092ac
* fix warning (missing alloca declaration)
...
* formatting
SVN revision: 38657
2009-01-20 08:29:41 +00:00
tilman
4c70375594
Fixed two trivial const correctness issues.
...
SVN revision: 38621
2009-01-17 17:13:03 +00:00
Vincent Torri
ca0cbdbec7
update ac_attribute.m4
...
SVN revision: 38579
2009-01-14 08:36:16 +00:00
Vincent Torri
cc7b4554cb
The problem of the detection of __attribute__ on mac os x comes
...
from the fact that we put a definition of a function in the
body of main(). Moving it outside fixes it. In addition, the
extra flag i added in configure.ac is useless.
SVN revision: 38565
2009-01-13 06:19:47 +00:00
Vincent Torri
f84454ed08
mac os x port of gcc has problems with __attribute__ and thinks that
...
there are nested functions. -fnested-functions must be passed to the
compiler to allow the compilation on that platform.
SVN revision: 38544
2009-01-11 09:25:47 +00:00
Daniel Kolesa
b61dff0b58
Added debian/rules files with a new permissions set(755).
...
SVN revision: 38519
2009-01-09 16:33:51 +00:00
Daniel Kolesa
971b1682a9
prepare debian rules files for new chmod permissions.
...
SVN revision: 38518
2009-01-09 16:31:51 +00:00
Daniel Kolesa
2bf1434120
Added new set of debian subdirs.
...
BROKEN/etox
e
ecore
e_dbus
edje
edje_editor
edje_viewer
eet
efreet
eina
elicit
elitaire
embryo
E-MODULES-EXTRA
emotion
emphasis
empower
emprint
enhance
enity
entrance
ephoto
epsilon
esmart
estickies
etk
etk_extra
evas
evolve
ewl
exhibit
exml
expedite
imlib2
imlib2_loaders
MISC/engage
OLD/eclair
OLD/engrave
OLD/enotes
OLD/entrance_edit_gui
OLD/e_utils
OLD/evoak
OLD/examine
OLD/iconbar
PROTO/etk_server
PROTO/exchange
PROTO/extrackt
rage
SVN revision: 38399
2009-01-01 11:35:17 +00:00
Daniel Kolesa
bf77c1ced2
Removed debian subfolders - prepared for a new set of debian subdirs.
...
SVN revision: 38398
2009-01-01 11:25:05 +00:00
Carsten Haitzler
430fa42aa4
naruto takahashi's fix for gcc3 patch
...
SVN revision: 38397
2009-01-01 03:09:48 +00:00
handyande
c2bab4e388
Make eina compile on OSX
...
SVN revision: 38382
2008-12-31 11:51:37 +00:00
Iván Briano
025c3d8422
Let's see if the number of people asking what Eina is remains the same.
...
SVN revision: 38354
2008-12-30 15:38:11 +00:00
Cedric BAIL
f2037c5c6f
Don't generate warning in some little case.
...
SVN revision: 38348
2008-12-29 12:41:46 +00:00
Cedric BAIL
f722173009
Don't display useless warning.
...
SVN revision: 38346
2008-12-29 11:49:35 +00:00
Cedric BAIL
73c686a5ea
Fix a little mistake.
...
SVN revision: 38339
2008-12-29 08:53:19 +00:00
Cedric BAIL
e537976f58
Use correct type.
...
SVN revision: 38338
2008-12-29 08:53:01 +00:00
Gustavo Sverzut Barbieri
b6e27a739f
oops, it's EINA_SAFETY_CHECKS, not just SAFETY_CHECKS.
...
SVN revision: 38328
2008-12-26 19:14:57 +00:00
Gustavo Sverzut Barbieri
ab95d9183d
eina safety checks.
...
safety checks will report null pointers and other error conditions on
public api's and can be disabled by compile time check.
note that in order to have these checks working we need to make
EINA_ARG_NONNULL() void, otherwise GCC can remove these checks since
they're known to be false.
This commit also make two minor changes:
* list and hash accessors and iterators are created even for empty
entities. This is correct in my point of view since NULL should
indicate error. Having these in were an optimziation, but not
worth it, these are not the most common case and hitting this path
is not of much cost.
* unmarked some parameters as nonnull, mainly on list and inlist.
SVN revision: 38327
2008-12-26 18:31:14 +00:00
Gustavo Sverzut Barbieri
b0ee5696a6
eina gets lots of gcc attributes to its api.
...
this should help with optimizations and code correctness, please see
"info gcc" for detailed explanation on these.
if you experience some functions not working as expected, please
double check if they're not marked with EINA_PURE or EINA_CONST, maybe
I misused them. Remove the macro and try again.
brief explanation:
* EINA_WARN_UNUSED_RESULT: if you forgot to use the return of some
function, it will emit a warning (and -Werror will make it an
error). This way it will be harder to miss the attribution
"l = eina_list_append(l, v)".
* EINA_ARG_NONNULL(index, index...): if you give it an explicit NULL
argument, or some tool (ie: clang) finds it could get a NULL but
this is not accepted by API, then a warning will be emitted. This
will help those that still use eina_hash_add() as if it is
evas_hash_add().
* EINA_MALLOC: any non-NULL pointer it returns cannot alias any other
pointer valid when function returns.
* EINA_PURE: function have no effects other than the return and this
return just depend on parameters and/or globals. You might call
this function in a loop a thousand times and it will return the
same value, thus you may move this function outside the loop and
remove it.
* EINA_CONST: stricter version of EINA_PURE, it will not check for
global parameters, that is, you cannot consider pointer
arguments. Use it for math things like "int sqrt(int)".
* EINA_PRINTF(fmt, arg): will check format parameter specified in
position "fmt" and passed arguments starting at position "arg", it
will check for things like giving integers where short or strings
were expected.
* EINA_SCANF(fmt, arg): similar to eina_printf().
* EINA_FORMAT(fmt): for use with things like dgettext(), it will get
a printf-like format string and modifies it.
Please review and test it with your software, make sure you make clean
before you install the new version so it has any effect.
If you find some functions are missing EINA_WARN_UNUSED_RESULT and
EINA_ARG_NONNULL or others, please add them.
SVN revision: 38323
2008-12-26 13:17:51 +00:00
Gustavo Sverzut Barbieri
de8b6a7bbd
fix possible errors with pointer/offset calculation.
...
it works on gcc, but maybe it would break in other compilers, so make
it safe.
SVN revision: 38302
2008-12-23 20:05:44 +00:00
Gustavo Sverzut Barbieri
7eb0826e29
remove dead stores and reduce some variable scope.
...
from clang report.
SVN revision: 38294
2008-12-23 19:17:55 +00:00
Cedric BAIL
fb238897e5
Use float instead of double.
...
SVN revision: 38292
2008-12-23 17:23:35 +00:00
Cedric BAIL
e006567cb0
Make it compile on Solaris.
...
SVN revision: 38290
2008-12-23 13:33:11 +00:00
Cedric BAIL
2c9ac0bd82
Remove now uneeded header.
...
SVN revision: 38289
2008-12-23 13:23:10 +00:00
Cedric BAIL
889d40abf8
Remove PATH_MAX use.
...
SVN revision: 38288
2008-12-23 13:12:06 +00:00
Cedric BAIL
6a87ca7590
Make code understandable by Visual Studio.
...
SVN revision: 38287
2008-12-23 10:04:46 +00:00
Cedric BAIL
c8714d04cc
Declaration should be done before any code.
...
SVN revision: 38286
2008-12-23 10:02:27 +00:00
dm
77dedbca06
Eina Win32 VS8 project added
...
SVN revision: 38282
2008-12-22 23:20:52 +00:00
Gustavo Sverzut Barbieri
765b770f82
oops, eina_stringshare_strlen() should never account '\0'.
...
SVN revision: 38260
2008-12-21 06:45:09 +00:00
Cedric BAIL
5383cabf2b
Fix EINA_ARRAY_ITER_NEXT off by one bug. With this fix you can no longer push
...
NULL pointer inside an array.
SVN revision: 38232
2008-12-19 17:55:57 +00:00
Cedric BAIL
3d41b74146
Update ac_attribute macro and remove __UNUSED__ declaration from eina.
...
SVN revision: 38179
2008-12-17 13:03:00 +00:00
Cedric BAIL
c80a55ee14
Add small bucket support.
...
SVN revision: 38168
2008-12-16 16:49:29 +00:00
Cedric BAIL
00b5758937
Add include to remove warning.
...
SVN revision: 38167
2008-12-16 16:49:00 +00:00
Cedric BAIL
db11d16b7f
Manipulating NULL iterator should be concidered as a defined behaviour as it
...
give the possibility to write small code like :
it = eina_hash_iterator_tuple_new(hash);
eina_iterator_foreach(it, do_something_cb, NULL);
eina_iterator_free(it);
If hash is empty, but valid it will return a NULL iterator for this
example.
SVN revision: 38104
2008-12-11 13:54:59 +00:00
Cedric BAIL
b8d721ac05
If we set the data free callback of a hash, we expect it to be called when
...
calling all eina_hash_del functions.
SVN revision: 38102
2008-12-11 13:47:58 +00:00
Cedric BAIL
9b9f752379
Only allocate hash bucket when needed.
...
Make eina_hash_del_by_key really different from eina_hash_del.
SVN revision: 38064
2008-12-09 17:39:48 +00:00
Cedric BAIL
00e8fba9ba
All eina_hash_find* functions should not report problem when hash or key is NULL.
...
SVN revision: 38059
2008-12-09 14:59:30 +00:00
Cedric BAIL
8ee267ec0d
Remove uneeded included.
...
SVN revision: 38058
2008-12-09 14:30:54 +00:00
Cedric BAIL
b0e1863871
eina_hash_find should not complain when hash or key is NULL.
...
SVN revision: 38057
2008-12-09 14:24:08 +00:00
Cedric BAIL
68cfd7839f
Add a visual feedback to counte test.
...
SVN revision: 38056
2008-12-09 13:58:04 +00:00
Cedric BAIL
24c1995b68
Change eina_counter_dump to return a string so it could work easily on windows.
...
SVN revision: 38055
2008-12-09 13:55:10 +00:00
Cedric BAIL
af30207725
eina_hash_del must honor the data parameter when the key is passed. Propagate
...
it correctly.
SVN revision: 38054
2008-12-09 13:52:09 +00:00
Cedric BAIL
273b7422d6
It's cleaner to first include private header as they could define macro
...
differently than public interface.
SVN revision: 38050
2008-12-09 13:06:17 +00:00
Cedric BAIL
d19801f7c2
Prevent warning from Eina Magic when hash population is 0.
...
SVN revision: 38049
2008-12-09 13:05:33 +00:00
Cedric BAIL
55d9c97446
__UNUSED__ macro is not exported by eina.
...
SVN revision: 38045
2008-12-09 11:01:12 +00:00
Cedric BAIL
5358b1f84f
Add integer and pointer hash table helper.
...
SVN revision: 38026
2008-12-08 17:31:55 +00:00
Cedric BAIL
c7b0e0a6b3
Fix include related to previous Eina Magic patch.
...
SVN revision: 38017
2008-12-08 10:51:51 +00:00
Cedric BAIL
199f900908
Application and library using Eina Magic API should be able to decide if they
...
want to check magic or not. This should not be forced by Eina config.
SVN revision: 38014
2008-12-08 10:18:05 +00:00
Gustavo Sverzut Barbieri
8ea28f64b7
hash: better handling of NULL, add magic checking.
...
* evas: if we automatically destroy hash, check for NULL before
handling it to eina api, which expect elements to be created with
eina_hash_new() and thus will fail on NULL.
* eina: add magic checking for eina_hash and eina_hash_iterator, this will
help spot when NULL is used.
* eina_hash_foreach: do not try to create the iterator if hash is NULL.
SVN revision: 37982
2008-12-07 13:28:29 +00:00
Gustavo Sverzut Barbieri
b21c687f61
refactor eina_hash_del*, expose simpler functions and avoid GCC hack.
...
By using simpler functions for hash element deletion we can avoid the
hack to shut up GCC warking about hash_num not being used. As these
simple functions are more often needed than the catch-all, expose them
as well.
SVN revision: 37962
2008-12-06 06:58:56 +00:00
Gustavo Sverzut Barbieri
09924b54e5
Let valgrind help with EINA_MAGIC.
...
Keep EINA_MAGIC at the end of the structure (WHEN POSSIBLE! Watch out
flexible arrays like char str[] at the end!)
this way if parts use EINA_MAGIC and others do not, it will possible overflow and valgrind can help us.
WARNING: make uninstall before update! Then make clean and make install, check if everything is working with "make check".
SVN revision: 37961
2008-12-06 06:53:14 +00:00
Gustavo Sverzut Barbieri
5939d76d9c
Fix couple of issues with MAGIC handling.
...
eina_magic.h MUST include eina_config.h, otherwise it will not
consider EINA_MAGIC stuff. Worse than that, some files were including
that directly and were considering EINA_MAGIC attribute even if the
file that alloc'ed the memory were not!
Also add missing EINA_MAGIC_SET() to iterators and accessors.
SVN revision: 37960
2008-12-06 06:17:11 +00:00
Gustavo Sverzut Barbieri
08832b519b
grow array only when required, use step properly.
...
We need to grow when we reach total amount, not when current + step > total.
SVN revision: 37959
2008-12-06 06:13:55 +00:00
Gustavo Sverzut Barbieri
091741f861
Force dummy_symbol to be visible.
...
"make check" was failing with -fvisibility=hidden.
SVN revision: 37958
2008-12-06 06:12:30 +00:00
Gustavo Sverzut Barbieri
6203f4b6be
do not segv on NULL inlist.
...
this was exposed by "make check", counter had no tests and it was failing.
SVN revision: 37957
2008-12-06 06:11:39 +00:00
Gustavo Sverzut Barbieri
a00eaac6a6
Make it possible to create iterators outside Eina.
...
Many places in EFL we just create walk something, create a list with
walked data, return, then the user walks it again and then deletes
(which will walk again). For such cases it's way better to define
iterators or accessors.
I'm not moving any EFL code to it now, but if people are interested,
things like evas_render_method_list(), evas_font_available_list(),
evas_objects_at_xy_get(), evas_objects_in_rectangle_get(),
evas_object_smart_members_get() are good candidates. If the subject is
already using Eina list, then you can just use
eina_list_iterator_new() and return it, otherwise you can define your
own iterator, which is very easy.
SVN revision: 37956
2008-12-06 03:41:03 +00:00
Gustavo Sverzut Barbieri
b023145eed
shut up gcc warning, with comment.
...
SVN revision: 37953
2008-12-06 03:02:30 +00:00
Carsten Haitzler
84f8c174bf
fix list accounting on sort! bad - how did this hide for so long?
...
SVN revision: 37951
2008-12-06 02:51:04 +00:00
Gustavo Sverzut Barbieri
f8868ffa96
Fix namespace: Eina_Foreach -> Eina_Hash_Foreach.
...
SVN revision: 37950
2008-12-06 02:21:17 +00:00
Gustavo Sverzut Barbieri
03fca99e56
Add safe Eina list walk function.
...
SVN revision: 37949
2008-12-06 02:13:01 +00:00
Chidambar Zinnoury
5c2c6049f1
Use includedir instead of prefix/include to install Eina headers.
...
SVN revision: 37925
2008-12-04 16:25:40 +00:00
Chidambar Zinnoury
ef7cd1e966
Typo: --enable enables an option.
...
SVN revision: 37913
2008-12-03 17:27:51 +00:00
Cedric BAIL
9a5b397a3e
Fix a little memory leak when iterating.
...
SVN revision: 37718
2008-11-20 13:26:18 +00:00
Vincent Torri
1b00e273ed
eina needs dl functions (Windows)
...
SVN revision: 37583
2008-11-11 07:22:47 +00:00
Cedric BAIL
5257321d9a
Fix some constness.
...
SVN revision: 37576
2008-11-10 16:23:56 +00:00
Cedric BAIL
aa82395cc1
Fix order of free during hash free.
...
SVN revision: 37572
2008-11-10 14:32:14 +00:00
Vincent Torri
a00a2a3636
put static functions where they belong
...
SVN revision: 37552
2008-11-08 16:47:52 +00:00
Sebastian Dransfeld
4173b41de5
Add missing return value.
...
SVN revision: 37528
2008-11-07 06:50:45 +00:00
Cedric BAIL
e8ed3963c8
Add eina_array_data_set.
...
SVN revision: 37475
2008-11-05 17:16:07 +00:00