Commit Graph

97 Commits

Author SHA1 Message Date
Cedric BAIL d8ad05920b eina: handle gracefully eina_*_free with NULL.
Patch by Raphael Kubo da Costa <>.

SVN revision: 73320
2012-07-05 01:12:27 +00:00
Vincent Torri 3ef67a7c87 Eina: implement eina_file_map_lines() on Windows
SVN revision: 73298
2012-07-04 18:47:19 +00:00
Sebastian Dransfeld 8fc3cd2a34 Revert "eina: fix eina_file_iterator"
This reverts commit 375d652df6430e08874412650e6f8aecfcbdca51.

SVN revision: 73056
2012-06-29 20:47:55 +00:00
Sebastian Dransfeld 2087ba893e changelog
SVN revision: 73055
2012-06-29 20:41:03 +00:00
Carsten Haitzler 5b303c8038 add EINA_MEMPOOL_PASS
SVN revision: 72248
2012-06-17 01:12:16 +00:00
Mike Blumenkrantz 8dbcdefab9 just spent waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay too long working on eina_str_split/full. never again.
this function was severely broken since 1.0: it did not abide by the limit param, and it was almost comically slow. I have (hopefully) fixed both of these issues. I also fixed the bug where this function was less than 200 lines long.

I'll backport this once it gets tested/reviewed/reverted

SVN revision: 71871
2012-06-08 23:28:11 +00:00
Mike Blumenkrantz 017a7d50eb add a check for stupids
SVN revision: 71851
2012-06-08 13:48:05 +00:00
Vincent Torri 96bfc84a12 Eina: Fix issue in the XML parser when a tag was in a comment or a CDATA.
SVN revision: 71518
2012-05-29 22:00:29 +00:00
Vincent Torri 4889dc71d2 Eina: remove threads options from configure
remove --disable-posix-threads and --disable-win32-threads
from configure options, and detect automatically the threading

SVN revision: 71517
2012-05-29 21:57:48 +00:00
Carsten Haitzler 859f22b80b add changelog for fix.
SVN revision: 71346
2012-05-23 04:28:09 +00:00
Cedric BAIL fa1569eb9b eina: avoid wrong implicit conversion from unsigned to unsigned long in Eina_Value tests
There is no automatic promotion of unsigned to unsigned long when using va_arg,
which means it is illegal to pass an 'unsigned' value and then use it as an
unsigned long in eina_arg_vset. Doing so yields incorrect results on some
architectures like itanium

Patch by  Albin 'Lutin' Tonnerre <>

SVN revision: 71196
2012-05-17 09:59:46 +00:00
Cedric BAIL b19de09bae eina: don't assume that 'char' is a signed type in Eina_Value
The eina_value code TYPE_CHAR conversion code assumes that 'char' is a signed
type, which is not true on some platforms like ARM and PPC. We need to
explicitely use signed chars to make sure the value is correct.

Patch by Albin 'Lutin' Tonnerre <>

SVN revision: 71195
2012-05-17 09:56:28 +00:00
Cedric BAIL f0a9acefa0 eina: add eina_file_map_lines.
This almost replace a loop of fopen/fgets/fclose, but it avoid
one memcpy.

SVN revision: 70871
2012-05-08 10:31:12 +00:00
Cedric BAIL 7d400fb5d9 eina: fix a rounding issue in eina_f32p32_{cos,sin} when getting close to 1.0.
Bug only showed up if above 0.999 .

SVN revision: 70831
2012-05-07 01:46:37 +00:00
Cedric BAIL 71090cd4fd eina,evas,edje,elementary: add missing files from tarballs.
Patch by Jérôme Pinot <>

SVN revision: 70543
2012-04-30 01:55:06 +00:00
Cedric BAIL cea8c9338c eina: add backtrace support to eina.
SVN revision: 70495
2012-04-26 08:10:38 +00:00
Cedric BAIL 8053f61f86 efl: add release point in ChangeLog files.
SVN revision: 70494
2012-04-26 08:07:22 +00:00
Cedric BAIL 5d72c686c7 eina: make it possible to force the number of detected CPU as way to overcome local bug.
SVN revision: 70328
2012-04-19 09:25:54 +00:00
Cedric BAIL 03ad20b260 eina: disable log backtracking.
SVN revision: 70327
2012-04-19 09:24:04 +00:00
Cedric BAIL 0aa710a832 eina: little improvement for EINA_LOG_BACKTRACE.
SVN revision: 70309
2012-04-19 00:23:06 +00:00
Vincent Torri 19d781290a formatting
SVN revision: 69817
2012-03-31 10:12:05 +00:00
Vincent Torri e1b801eebc Eina: update ChangeLog (NEWS already filled)
SVN revision: 69814
2012-03-31 07:38:01 +00:00
Iván Briano 73bed950b0 Hack to avoid freeing old data when calling eina_hash_set() with new_data == NULL. Let's have a minute of silence for all the innocent children that died because of this very grave error.
SVN revision: 69763
2012-03-29 17:46:17 +00:00
Carsten Haitzler a2f578c9c5 bring eina's NEWS up to date with changelog.
SVN revision: 69625
2012-03-26 04:33:56 +00:00
Cedric BAIL 9f4dd88b41 eina: fix build when valgrind is not in a standard location.
Patch by Raphael Kubo da Costa <>.

SVN revision: 69456
2012-03-16 11:25:14 +00:00
Cedric BAIL dd3d01f643 eina: backport and ChangeLog for dead lock in Eina_File.
SVN revision: 69339
2012-03-14 15:53:14 +00:00
Cedric BAIL a16dd17686 eina: backport, ChangeLog and NEWS.
SVN revision: 68925
2012-03-07 10:45:06 +00:00
Cedric BAIL 411a4eb936 eina: faster implementation of Eina_Rbtree by Alexandre Becoulet.
SVN revision: 68474
2012-02-27 13:29:47 +00:00
Cedric BAIL c461a7eed9 eina: add eina_file_stat helper function.
SVN revision: 68259
2012-02-22 10:24:11 +00:00
Cedric BAIL e0e0d4ddc3 eina: fix forgotten initialization of count during eina_list_split_list.
SVN revision: 68067
2012-02-17 11:16:01 +00:00
Tom Hacohen 518424907e Eina stringshare: fixed up the previous commit a bit.
Fixed wrong usage of Eina_Stringshare - Thanks k-s.
Omited the star from the typedef - Thanks Sacihel.

SVN revision: 67642
2012-01-31 17:27:57 +00:00
Tom Hacohen ade018086c Eina stringshare: Added Eina_Stringshare a stringshare visual hint.
It's interchangeable with const char *, it's juts there as a visual hint
for functions expecting stringshared values. Docs are not enough...

SVN revision: 67641
2012-01-31 17:12:23 +00:00
Tom Hacohen 92d70212c5 Eina: Added EINA_C_ARRAY_LENGTH.
This macro returns the length of a standard C array.

SVN revision: 67589
2012-01-29 15:38:01 +00:00
Vincent Torri fcd0b658cf Eina: fix compilation errors in Eina_RWLock code when building code on Windows > XP
SVN revision: 67545
2012-01-26 07:21:27 +00:00
Gustavo Sverzut Barbieri 7c0357ddeb welcome eina_model.
This is a simple to use generic hierarchical data access. It includes
properties, children, reference counting and notifications (callbacks).

It can be understood in the same lines as GObject or PyObject, but I
believe the best usage is just to provide data models, not generic
Object Oriented Programming in C.

It misses most of documentation, although the important bits are
there. Need help here :-/

SVN revision: 67405
2012-01-21 01:30:09 +00:00
Vincent Torri 9a76004770 Eina: Fix compilation of eina_semaphore_lock() (Windows port)
Patch by Shinwoo Kim

SVN revision: 67317
2012-01-19 06:33:42 +00:00
Gustavo Sverzut Barbieri c502186b3d make bastards happy
SVN revision: 67083
2012-01-11 14:06:07 +00:00
Gustavo Sverzut Barbieri 7a4e904566 add eina_value.
eina value is a generic value storage, it's quite efficient to space
(16 bytes) and speed (inlines for basic types).

It's basically a structure describing how to manage memory
(Eina_Value_Type), with default implementation for char, short, int,
long, int64_t (and unsigned variants), float, double, stringshare and

If a type 'value_size' is smaller than 8 bytes, it's stored
inline. Otherwise a value is allocated and managed.

Most of the methods are inline, with special handling for char, short,
int... Then no extra calls are made, allowing the compiler to optimize

For array of a single type it is recommend to use Eina_Value_Array, as
it will efficiently store and access members (just a char if subtype

It can copy itself, compare itself. Including arrays.

It would be nice to have something that converts between EET and this.

SVN revision: 67035
2012-01-11 02:20:26 +00:00
Gustavo Sverzut Barbieri 45b07ed02d add eina_inarray.
It is an inline array, that is, the members are actually in the
allocated buffer, as opposed to a pointer to its data.

It can be used to manage array of integers, floats or other structures
without fragmenting memory.

The lookups should be fast as memory is linear, then CPU prefetch can
kick in and bring data to cache before it's used.

SVN revision: 67003
2012-01-09 23:24:18 +00:00
Cedric BAIL edbee63134 eina: detect fault during Eina_File mmap memory access and improve Xattr functions.
SVN revision: 66799
2012-01-03 14:59:07 +00:00
Cedric BAIL fa3ca325d3 eina: let eina_hash_free behave like free.
SVN revision: 66694
2011-12-30 13:41:37 +00:00
Cedric BAIL d92a903ffe eina: add Eina_Semaphore API.
Patch by Vincent Torri.

SVN revision: 66693
2011-12-30 13:38:53 +00:00
Cedric BAIL d42f1a957c eina: forgotten ChangeLog update in trunk.
SVN revision: 66635
2011-12-29 14:03:42 +00:00
Cedric BAIL 4d01164eb6 eina: forgotten ChangeLog.
SVN revision: 66384
2011-12-20 11:09:53 +00:00
Tom Hacohen 66b3c08aff Eina bin/(u)strbuf: Added eina_*buf_manage_new_length.
Same as eina_*buf_manage_new except for the length parameter.

SVN revision: 66028
2011-12-08 13:10:57 +00:00
Mike Blumenkrantz 8ada55917a fix eina_log*level_check() to return the value that the docs claim will be returned
how did nobody catch this sooner?

SVN revision: 66013
2011-12-08 04:11:54 +00:00
Carsten Haitzler ac4c70ab7b fix changelogs to mention release.
SVN revision: 65860
2011-12-04 01:56:31 +00:00
Mike Blumenkrantz afdbaf8651 +eina_mempool_calloc
SVN revision: 65821
2011-12-02 15:27:35 +00:00
Boris Faure 15f0f3e044 eina: update news/changelog
SVN revision: 65268
2011-11-15 14:24:53 +00:00
Cedric BAIL 0c6ed213ad eina: add eina_xattr.{c,h}.
SVN revision: 63412
2011-09-15 15:37:28 +00:00