Cedric BAIL
1c9470e071
eina: improve logging and debugging infra for Eina_Cow.
2013-03-04 11:08:21 +09:00
Cedric BAIL
fde00d91a8
eina: eina_strlcat now work with NULL src.
2013-02-28 07:49:16 +09:00
Daniel Willmann
7f63a74251
eina: Lets allocate space for the terminating \0 as well
...
Off-by-1 in string copy, found by klocwork
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-02-18 13:18:04 +00:00
Cedric BAIL
884c31df41
eina: fix siginfo detection.
...
Signal are not a portable way to detect memory mapped file corruption.
So let's disable it for system without signal and later find a way to
detect it on other system.
2013-02-18 16:46:52 +09:00
Cedric BAIL
1e916e44f7
eina: improve Eina_Clist support for 64bits system.
...
This warning are triggered by a cross compilation as previously stated.
2013-02-16 10:54:36 +01:00
Cedric BAIL
ed58d0dd05
efl/eina: let's do all include.
...
SVN revision: 83833
2013-02-12 01:42:47 +00:00
Stefan Schmidt
6467f60395
efl/eina_xattr: Fix memory leak in eina_xattr_value_ls.
...
In the error case we freed the iterator but not the attribute.
SVN revision: 83791
2013-02-08 15:49:59 +00:00
Daniel Juyung Seo
48a06f1252
eina eina_inlist.c: Fixed formatting while reading the code.
...
SVN revision: 83714
2013-02-07 08:03:44 +00:00
Cedric BAIL
e684f5a823
efl/eina: Eina_Tiler take tile size into account.
...
SVN revision: 83708
2013-02-07 07:32:45 +00:00
Cedric BAIL
d9cafa2052
eina: disable randomisation for Eina_Hash superfast.
...
SVN revision: 83698
2013-02-07 03:07:32 +00:00
Cedric BAIL
1cb8c3c006
efl/eina: fix map leak in Eina_File.
...
SVN revision: 83668
2013-02-06 09:28:00 +00:00
Cedric BAIL
01dba3fbc0
efl/eina: prevent denial of service on eina_hash.
...
Thanks goes to Thiago Macieira for sharing the issue. This
is the result of the cross-desktop talk at fosdem. A lot more
comming in the futur !
SVN revision: 83578
2013-02-04 07:52:56 +00:00
Mike Blumenkrantz
afa9c0ab97
fix typo in stringshare_refplace doc
...
SVN revision: 83565
2013-02-01 12:57:44 +00:00
Mike Blumenkrantz
1f9a84b9cc
add eina_stringshare_refplace(): same as replace(), but calls ref instead of add
...
also fixed a small doc error
SVN revision: 83549
2013-02-01 11:12:33 +00:00
Mike Blumenkrantz
bfc76668f4
finally addressing complaints regarding eina_list_last_data_get() not being a function. well now it is
...
SVN revision: 83547
2013-02-01 11:02:53 +00:00
Cedric BAIL
6414b0864f
efl/eina: fix some memleak and improve speed of eina_cow_memcpy.
...
SVN revision: 83375
2013-01-28 00:22:21 +00:00
Boris Faure
fb3c280a95
efl: more valgrind related fixes on eina_cow
...
SVN revision: 83311
2013-01-24 21:42:18 +00:00
Boris Faure
8d13c5ce3e
efl: eina_cow: fix some valgrind instrumentation
...
SVN revision: 83308
2013-01-24 21:06:41 +00:00
Cedric BAIL
eff597ea1e
eina: fix some warning.
...
SVN revision: 83196
2013-01-24 02:58:00 +00:00
Cedric BAIL
05b4d1b3cd
efl/eina: improve Eina_Cow.
...
- Add valgrind macro arround Eina_Cow internal data.
- Add a #define for Eina_Magic on Eina_Cow returned pointer.
- Fix a bug done during free on a mempool data (Need to improve
mempool to catch this one more easily next time).
SVN revision: 83191
2013-01-24 01:42:20 +00:00
Cedric BAIL
d282e075ef
efl/eina: don't over align when the structure is already aligned.
...
SVN revision: 83189
2013-01-24 01:38:12 +00:00
Cedric BAIL
65344d7a7f
efl/eina: let us know where that wrong Eina_Magic was in memory.
...
SVN revision: 83188
2013-01-24 01:37:20 +00:00
Cedric BAIL
4d8dffc411
efl: remove useless code.
...
SVN revision: 83065
2013-01-22 09:58:36 +00:00
Cedric BAIL
94b31ce5da
efl: simplify logic of eina_cow.
...
SVN revision: 83051
2013-01-22 03:52:55 +00:00
Cedric BAIL
a102b14686
efl: not sure of that one, but remove use of eina_safety_check in inline function.
...
SVN revision: 83050
2013-01-22 02:14:57 +00:00
Cedric BAIL
d32ee023e3
efl: missing deprecated user.
...
SVN revision: 83049
2013-01-22 02:14:07 +00:00
Cedric BAIL
336e0c5e38
efl: deprecate eina_unicode_utf8_get_next, add eina_unicode_utf8_next_get.
...
SVN revision: 83048
2013-01-22 02:00:55 +00:00
Cedric BAIL
066543089d
efl: inline eina_unicode_utf8_get_next.
...
SVN revision: 83035
2013-01-21 09:37:14 +00:00
Cedric BAIL
5bd8b33906
efl: add eina_cow helper macro.
...
SVN revision: 83025
2013-01-21 03:11:29 +00:00
Cedric BAIL
41b70693b7
efl: fix leak in eina_cow.
...
Patch by Paulo Alcantara <pcacjr@zytor.com>.
SVN revision: 83014
2013-01-20 11:02:48 +00:00
Gustavo Sverzut Barbieri
5f8c760406
fix eina_binshare_add_length() using EINA_PURE.
...
Amazingly this was caught by a test (eina_binshare_small) that was
failing... Who said we didn't had test?! :-P
SVN revision: 82946
2013-01-17 20:10:15 +00:00
Cedric BAIL
c8ff22bf5b
efl: let's be nice on NULL.
...
SVN revision: 82930
2013-01-17 10:29:31 +00:00
Cedric BAIL
515282006f
efl: Add Eina_Cow_Data...
...
SVN revision: 82923
2013-01-17 06:51:35 +00:00
Cedric BAIL
c7aead6fdc
efl: fix cow after review by k-s.
...
NOTE: I didn't find a way to tell valgrind that some memory is read only.
SVN revision: 82742
2013-01-14 03:34:19 +00:00
Gustavo Sverzut Barbieri
e21bfbbbb2
eina: add missing ifdef around splice code.
...
SVN revision: 82735
2013-01-14 00:00:37 +00:00
Lucas De Marchi
4af2647d05
efl: remove check for libgen.h
...
SVN revision: 82582
2013-01-10 20:25:48 +00:00
Lucas De Marchi
23b741699f
efl: remove check for inttypes.h and stdint.h
...
SVN revision: 82580
2013-01-10 20:25:39 +00:00
Lucas De Marchi
f60bfe38d6
efl: Remove check for siginfo.h and siginfo_t
...
SVN revision: 82579
2013-01-10 20:25:35 +00:00
Lucas De Marchi
db395ef7eb
efl: Remove check for unistd.h
...
* unistd.h: is very useful, very old and very standard.
SVN revision: 82577
2013-01-10 20:25:26 +00:00
Lucas De Marchi
3dc661e710
efl: Remove check for strings.h
...
* strings.h: is very useful, very old and very standard. The only place
that checks for that is simple_xml_parser and I have no idea why
SVN revision: 82576
2013-01-10 20:25:21 +00:00
Gustavo Sverzut Barbieri
8ac159bfe2
efl/eina_prefix: whitespace cleanup as pointed by kuri at #edevelop
...
trailing whitespacesd and mixed tabs (old style) are gone.
SVN revision: 82470
2013-01-09 16:00:39 +00:00
Gustavo Sverzut Barbieri
37ab81a620
efl/eina_prefix: fix _try_proc() location.
...
_try_proc() is how to find a symbol based on /proc/self/maps, not
related to argv0.
change _try_proc() to ifdef inside... avoiding the need to ifdef at
definition and call site.
SVN revision: 82469
2013-01-09 15:57:28 +00:00
Gustavo Sverzut Barbieri
da5a568f68
efl/eina_prefix: simplify common prefix lookup.
...
SVN revision: 82467
2013-01-09 15:46:05 +00:00
Gustavo Sverzut Barbieri
ba461e9467
efl/eina_prefix: use eina_safety to be loud on NULL pointers.
...
SVN revision: 82466
2013-01-09 15:38:42 +00:00
Gustavo Sverzut Barbieri
2f49e495ee
efl/eina_prefix: cleanup and review logs.
...
there shouldn't be behavior changes at this point, just minor cleanups
and simplifications, particularly to the log.
SVN revision: 82464
2013-01-09 15:21:40 +00:00
Gustavo Sverzut Barbieri
65aae8f181
efl/eina: fix debian multilib detection without magic file.
...
The algorithm will now consider valid bin, data orlocale as well if
magic file was not provided.
SVN revision: 82429
2013-01-08 23:57:14 +00:00
Cedric BAIL
0e50f122e5
efl: Add eina copy on write infrastructure.
...
SVN revision: 82396
2013-01-08 09:17:56 +00:00
Jérémy Zurcher
1424ac7d4d
From: Jérémy Zurcher <jeremy@asynk.ch>
...
Subject: [E-devel] 2 steps eina_share_common_del speed up
builtin node is never unlinked even if empty, always is the last of the queue,
so that it can be used to get a pointer to head.
cost: never unlink or promote builtin node.
benefit: no need to hash and search rbtree to unlink an empty node,
only to remove an empty head.
store full hash in Eina_Share_Common_Head, so we only hash once
use 8 lower bits as node hash, use next 8 bits as bucket index.
cost: have to apply 0xFF mask on hash in rbtree callbacks.
benefit: no need to hash when removing an empty head.
SVN revision: 82161
2013-01-04 08:41:47 +00:00
Gustavo Sverzut Barbieri
0a2d116119
efl: eina_alloca.h to simplify alloca() usage.
...
having to replicate 18 lines per file just to access alloca() is
insane. Let's do that in Eina.h and avoid that crap :-/
SVN revision: 82082
2013-01-03 15:10:34 +00:00
Gustavo Sverzut Barbieri
43eb232d38
oops: remove printf
...
SVN revision: 81943
2012-12-31 23:42:25 +00:00