Cedric BAIL
86a21376ad
* eina: report when and where memleak come from.
...
SVN revision: 51040
2010-08-12 14:22:22 +00:00
Tom Hacohen
d2988fe707
Eina: "FIX" EINA_UNICODE_EMPTY_STRING.
...
SVN revision: 51038
2010-08-12 14:16:32 +00:00
Cedric BAIL
a6645cb746
* eina: fix eina array threadsafe version.
...
Also add iterator and accessor ability to walk threadsafely.
Rename EINA_EACH to EINA_EACH_CB to match other callback cast.
SVN revision: 51000
2010-08-11 14:32:30 +00:00
Mike Blumenkrantz
7833796e00
right...this is malloc...
...
SVN revision: 50963
2010-08-10 12:25:34 +00:00
Mike Blumenkrantz
a7398f4e08
refcount locks to avoid deadlocks; array threadsafety should be good to go now
...
SVN revision: 50962
2010-08-10 12:14:59 +00:00
Mike Blumenkrantz
c09c5ed690
and these
...
SVN revision: 50961
2010-08-10 12:05:51 +00:00
Mike Blumenkrantz
a589a1bcbe
and this too
...
SVN revision: 50960
2010-08-10 12:00:36 +00:00
Mike Blumenkrantz
cbf7f7b58a
array threadsafing wip, get rid of dumb undefineds from earlier
...
SVN revision: 50959
2010-08-10 11:57:20 +00:00
Mike Blumenkrantz
5b4ec5bd35
change EINA_ARRAY_THREADSAFE_ITER_RETURN to EINA_ARRAY_THREADSAFE_ITER_ESCAPE to match forthcoming threadsafe list api
...
SVN revision: 50956
2010-08-10 07:48:00 +00:00
Mike Blumenkrantz
6bc0a6cb14
errr use the right define for this
...
SVN revision: 50952
2010-08-10 03:37:21 +00:00
Mike Blumenkrantz
56a0bd9396
implement threadsafety for arrays, alter all eina internal array usage to (hopefully) be threadsafe
...
call eina_threads_init() to enable this if you have pthread rwlock support (posix 2001)
note some function prototypes have lost const on array params to allow locking
WARNING: you should NOT call eina_threads_shutdown unless you are positive that you will not use any arrays which were created while threadsafe mode were enabled, and vice versa. Failing to adhere to this warning WILL result in either deadlocks or memory leaks.
SVN revision: 50951
2010-08-10 03:26:15 +00:00
Mike Blumenkrantz
224f7d3b55
formatting
...
SVN revision: 50913
2010-08-08 20:49:26 +00:00
Mike Blumenkrantz
27041eb06e
fix automake quoting
...
SVN revision: 50912
2010-08-08 20:48:46 +00:00
Mike Blumenkrantz
84faaf51fd
add rwlock define to eina_config.h
...
SVN revision: 50911
2010-08-08 19:35:43 +00:00
Mike Blumenkrantz
76a70bdd48
split out spinlock detection to separate macro for readability, add rwlock detection macro
...
***no functional changes***
SVN revision: 50910
2010-08-08 19:20:07 +00:00
Tom Hacohen
ed0f5eb857
eina: fix strdup calloc, it's number of elements and then size, and not the other way around.
...
SVN revision: 50898
2010-08-08 12:03:18 +00:00
Cedric BAIL
476f09d29b
* eina: add some doc for one big mempool.
...
SVN revision: 50834
2010-08-05 12:52:30 +00:00
Cedric BAIL
e1d8b17d54
* eina: fix segv on NULL mempool.
...
SVN revision: 50833
2010-08-05 12:36:36 +00:00
Cedric BAIL
05143be132
* eina: complete configure.ac with latest mempool.
...
SVN revision: 50831
2010-08-05 09:40:50 +00:00
Lucas De Marchi
0a4617ae38
FORMATTING
...
* Remove vim modelines:
find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;
* Remove leading blank lines:
find . -name '*.[cxh]' -exec sed -i '/./,$!d'
If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0
SVN revision: 50816
2010-08-04 16:57:32 +00:00
Gustavo Lima Chaves
faa7644e22
Better documenting EINA_MAGIC_SET()'s use.
...
Patch by Jonas Gastal.
SVN revision: 50744
2010-08-02 16:57:38 +00:00
Brett Nash
9da847b538
Fix eina_unicode_strncpy
...
SVN revision: 50741
2010-08-02 09:44:11 +00:00
Brett Nash
d3655ee501
Beef up the strncpy test
...
SVN revision: 50740
2010-08-02 09:44:06 +00:00
Brett Nash
7f83020567
Terminate the string after strcpy
...
SVN revision: 50739
2010-08-02 09:44:01 +00:00
Brett Nash
9e468e94e7
Update eina_unicode_strnlen
...
SVN revision: 50738
2010-08-02 09:43:57 +00:00
Brett Nash
4efb9d70af
Add ustr tests.
...
SVN revision: 50737
2010-08-02 09:43:51 +00:00
Brett Nash
1e8074954f
Fix end points
...
SVN revision: 50708
2010-07-31 05:24:45 +00:00
Brett Nash
db89ba43d7
eina: Actually implement strnlen for eina_unicode.
...
SVN revision: 50700
2010-07-31 03:54:09 +00:00
Mike Blumenkrantz
d409884148
incomplete doxy!
...
cedric SPANK SPANK SPANK!!!
SVN revision: 50694
2010-07-30 21:18:40 +00:00
Cedric BAIL
c9d5d8a62e
* eina: add a way to move a key to another without triggering the Free_Cb.
...
SVN revision: 50683
2010-07-30 09:06:58 +00:00
Cedric BAIL
85be5e4201
* eina: try to fix memory align on sparc.
...
SVN revision: 50680
2010-07-30 08:26:34 +00:00
Brett Nash
4414556323
Unicde strnlen, and a slight fix to the header so at least part can be read by
...
humans.
Also strlen/strnlen are pure.
SVN revision: 50676
2010-07-30 03:39:12 +00:00
Iván Briano
55baf0a4f1
DO export this thingies
...
SVN revision: 50645
2010-07-29 14:08:02 +00:00
Cedric BAIL
836721fc6e
* eina: remove some warning.
...
SVN revision: 50644
2010-07-29 13:59:31 +00:00
Cedric BAIL
4010a9b18a
* eina: fix wrong test in eina_big.
...
SVN revision: 50602
2010-07-28 18:10:53 +00:00
Tom Hacohen
713354b764
Eina: Fixed a bug in eina_*share_dump functions and fixed a documentation error.
...
SVN revision: 50600
2010-07-28 17:53:10 +00:00
Mike Blumenkrantz
5028d6a282
lots of doxy fixes and stop casting to char*
...
SVN revision: 50582
2010-07-28 03:34:25 +00:00
Mike Blumenkrantz
a124fffeca
start binshare
...
SVN revision: 50581
2010-07-28 03:33:49 +00:00
Carsten Haitzler
15c71af0a5
fix formatting also
...
SVN revision: 50577
2010-07-28 03:03:25 +00:00
Carsten Haitzler
bed21c315d
errrr... hmmm why did this change?
...
SVN revision: 50574
2010-07-28 02:48:11 +00:00
Carsten Haitzler
ddc6ba2c2a
uncrustify eina.
...
SVN revision: 50573
2010-07-28 02:37:05 +00:00
Mike Blumenkrantz
d87ed6ac22
when all files combine and the enable flag is set, form VOLTRON, DEFENDER OF THE UNIVERSE!
...
SVN revision: 50550
2010-07-27 20:17:25 +00:00
Tom Hacohen
e6ec7adedb
Eina: Fix the segfault in eina_stringshare_shutdown with-enable-amalgamation.
...
SVN revision: 50548
2010-07-27 16:53:49 +00:00
Tom Hacohen
32c7a50118
Eina: Fix compilation with --enable-amalgamation.
...
Sorry dh :P
SVN revision: 50545
2010-07-27 15:15:45 +00:00
Tom Hacohen
6b69189efd
Eina: Added ustringshare and binshare tests.
...
Fixed a small bug in binshare (in the length function).
Moved some debug messages around.
SVN revision: 50541
2010-07-27 11:43:37 +00:00
Tom Hacohen
d928a9ded8
Eina: implement the macro eina_binshare_add.
...
SVN revision: 50535
2010-07-27 09:41:34 +00:00
Tom Hacohen
279da003e0
Eina: Added Eina_UStrbuf.
...
Same as Eina_Strbuf but for Eina_Unicode strings.
SVN revision: 50534
2010-07-27 09:05:41 +00:00
Tom Hacohen
3675a5f02b
Eina: Add Eina_UStringshare and Eina_Binshare.
...
Also modified Eina_Stringshare to share most of the code with the two above.
Added Magics for Eina_UStrbuf as well as for UStringshare/Binshare.
SVN revision: 50533
2010-07-27 08:55:23 +00:00
Tom Hacohen
270f765c91
Eina: Added Eina_Unicode.
...
SVN revision: 50532
2010-07-27 08:22:20 +00:00
Nicolas Aguirre
c024369336
Use INF only when it's defined. Fix a warning during eina compilation.
...
SVN revision: 50512
2010-07-26 16:17:11 +00:00