Daniel Willmann
7f5ea979c3
Hush clang warnings for EINA_INLIST_FOREACH_SAFE
...
As cedric said a couple years ago in commit 17c820ae:
"This initialisation is not needed, but will reduce llvm warning noise."
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-03-20 17:05:27 +00:00
Jérémy Zurcher
b4cad3c370
eina: add eina_list_shuffle
...
Summary: add uniform shuffle to Eina_List
Reviewers: cedric
Differential Revision: https://phab.enlightenment.org/D27
2013-03-20 12:19:13 +01:00
Jérémy Zurcher
d0f3357f77
TES
...
Conflicts:
src/lib/eina/eina_list.c
src/lib/eina/eina_types.h
2013-03-20 11:48:44 +01:00
Cedric BAIL
a40c41b1bd
eina: fix use of Valgrind macro in Eina_Cow.
2013-03-20 11:01:03 +09:00
Cedric BAIL
e02bb36e3a
eina: improve speed of Eina_Cow.
...
* Use an Eina_Hash for the garbage collector list.
* Turn off garbage collection on object that are unlikely to match.
This patch make 1.8 as fast as 1.7 again.
2013-03-20 10:59:56 +09:00
Tom Hacohen
d84de4adf1
Disable cow magic in dev profile, instead of a hack in the source.
...
Well played cedric, making me revert your patch and thus breaking the build.
2013-03-19 15:45:44 +00:00
Tom Hacohen
60c9ba4a8f
Revert "eina: reenable them as it was a bug from Tasn."
...
This reverts commit a9041777d4
.
Re-disable them as it was a bug from Cedric.
This is the cause for the huge slowdown.
2013-03-19 15:37:55 +00:00
Cedric Bail
a9041777d4
eina: reenable them as it was a bug from Tasn.
2013-03-20 00:16:12 +09:00
Cedric Bail
68213b7f78
eina: disable Eina_Cow magic completely for the moment.
2013-03-19 23:42:12 +09:00
Mike Blumenkrantz
ef3c57aa08
fix magic failure in eina_value_array_count when array has not been allocated
2013-03-19 14:07:28 +00:00
Stefan Schmidt
b3c1a6c1c5
eina: Add execinfo.h to avoid implicit declarations.
...
If we have backtrace support we should also add the header before
using the backtrace and backtrace_symbols_fd functions.
2013-03-19 08:38:11 +00:00
Cedric Bail
9e745d4a2c
efl: add macro to swap Windows and Unix path separators.
2013-03-19 15:15:46 +09:00
Cedric BAIL
5f2ec224e9
eina: speed up Eina_Cow.
...
* Use Eina_Hash instead of Eina_List to remember what memory did change.
* Turn off Eina_Cow use of Eina_Magic when doing a release as it is only
used internaly and we should not make any mistake there.
2013-03-19 15:11:50 +09:00
Daniel Juyung Seo
0dba1e9b8a
eina eina_inlist.c: fixed formatting while reading the code.
2013-03-17 19:00:49 +09:00
Cedric Bail
06ce7c2ede
eina: add support for Systemd journal in Eina_Log.
...
NOTE: if you start your process with Systemd it will automatically use
Journald API. You will need to overide the default logging function to
change that behavior.
2013-03-16 22:49:32 +09:00
Cedric BAIL
6b4ba5cead
eina: a little bit sleepy, put that in the right file.
2013-03-15 16:47:05 +09:00
Cedric BAIL
352ed3cfa4
eina: add evil in.
2013-03-15 16:41:46 +09:00
Cedric BAIL
0dde9a6574
eina: share eina_file_copy code accross platform.
2013-03-15 16:05:39 +09:00
Cedric BAIL
e70502f1a1
eina: improve portability of Eina_File.
2013-03-15 11:05:25 +09:00
Daniel Willmann
f90726cf35
Revert "eina: improve portability of Eina_File."
...
This reverts commit c002d113f1
.
This commit reliably breaks builds with clang. Please test with
export CC=clang before you commit again.
export CC=clang
./autogen.sh --enable-multisense && make -j 10
The error Jenkins gets (I confirmed locally):
/bin/bash: line 1: 13549 Segmentation fault (core dumped) EFL_RUN_IN_TREE=1 ./bin/edje/edje_cc -id . -fd . -id ./tests/emotion/data tests/emotion/data/theme.edc tests/emotion/data/theme.edj
2013-03-14 17:21:48 +00:00
Cedric BAIL
49887271d2
eina: remove duplicated declaration.
2013-03-14 21:00:03 +09:00
Cedric BAIL
c002d113f1
eina: improve portability of Eina_File.
2013-03-14 20:52:37 +09:00
Cedric BAIL
81f739da84
eina: improve usability of Eina_Tmpstr.
...
Added eina_tmpstr_add_length and eina_tmpstr_strlen.
2013-03-14 20:52:37 +09:00
Cedric Bail
709b975ca3
check fchmod existence for portabilityy
2013-03-13 17:04:32 +09:00
Vladislav Brovko
8cac00fc66
eina: prevent space stripping of CDATA in Eina_Simple_XML.
...
Prevent stripping spaces (after [CDATA[ and before ]]>) in XML like:
<![CDATA[ <foo>bar</foo> ]]>
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-11 11:03:05 +09:00
Cedric Bail
8d5e33077e
efl: use HAVE_FCNTL around call to fcntl.
2013-03-10 23:10:27 +09:00
Cedric Bail
5fc7829c96
eina, evil: fix warning on 64 bits
2013-03-10 20:32:53 +09:00
Daniel Juyung Seo
5d20302c35
eina eina_hash.h,eina_list.h: fixed a typo.
...
ilustrate -> illustrate
2013-03-09 14:38:36 +09:00
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