Cedric BAIL
cb77de8e30
* eet_data: Make eet_data_descriptor_free safe on NULL pointer.
...
SVN revision: 44368
2009-12-11 12:53:08 +00:00
Cedric BAIL
5dd7275c9a
* eet: Fix convertion from any float type to any other float type.
...
SVN revision: 44239
2009-12-07 09:33:20 +00:00
Vincent Torri
35bd81e535
* add amalgamation option to eet (disabled by default,
...
as no real gain is seen (compilation time, size))
* add namespace for words_bigendian, to make amalagamation happy
* don't redefine macros, for the same purpose
SVN revision: 43409
2009-11-02 08:41:43 +00:00
Cedric BAIL
5ca2776a01
* eet: Fix some llvm report.
...
SVN revision: 42816
2009-09-30 10:05:15 +00:00
Cedric BAIL
9a5f70b8c7
* eet: Add support for fixed point in Eet.
...
Note: They are saved as EET_T_DOUBLE, and you can request fixed point value
where you stored EET_T_FLOAT or EET_T_DOUBLE. In fact now any floating point
or fixed point value can be retrieved as any real number type you need. Eet
is taking care of the convertion for you.
SVN revision: 42800
2009-09-29 13:24:45 +00:00
Gustavo Sverzut Barbieri
183237e348
improve logging messages introduced by Mathieu Taillefumier.
...
move some to error/critical, remove trailing \n.
NOT doing ChangeLog entry on purpose, it's useless as it's an
intra-release change (changes the previous unlreleased change)
SVN revision: 42547
2009-09-17 14:33:06 +00:00
Cedric BAIL
3e23569492
* eet_data: Remove unused freeleak.
...
SVN revision: 42495
2009-09-15 14:48:42 +00:00
Cedric BAIL
cab54bd121
* eet: Use eina_log.
...
Patch from Mathieu Taillefumier <mathieu.taillefumier@free.fr>.
SVN revision: 42492
2009-09-15 11:22:11 +00:00
Carsten Haitzler
65c50a0a4e
fix - write empty chunks. need them for corner case. see comments.
...
SVN revision: 41810
2009-08-16 07:06:22 +00:00
Carsten Haitzler
c1acd83e1e
beware "class"! those c++ compiler can compile c... but they like to think
...
class is special... ESPECIALLY IN HEADERS used by c++ apps.
SVN revision: 41738
2009-08-13 14:47:10 +00:00
Cedric BAIL
05edf17dd4
* eet: Oops. Fix init order.
...
SVN revision: 41736
2009-08-13 13:57:22 +00:00
Cedric BAIL
2cf15dc335
* eet: Fix prefix.
...
SVN revision: 41735
2009-08-13 13:26:43 +00:00
Cedric BAIL
1e0baaab60
* eet: Cleanup Eet_Data_Descriptor API.
...
- Provide two functions with a better name (Still need more doc).
- Deprecating old eet_data_descriptor*_new.
- Provide helper function for eet when using eina data type.
SVN revision: 41732
2009-08-13 12:52:41 +00:00
Cedric BAIL
9c5a02a771
* eet_node: Fix eet_data_undump segv when Eet_Node == NULL.
...
SVN revision: 40894
2009-06-04 09:29:56 +00:00
Cedric BAIL
70c7a08c05
* eet_node: Fix API.
...
SVN revision: 40873
2009-06-02 16:24:28 +00:00
Cedric BAIL
16ae86eacb
* eet_data: Remove some warning.
...
SVN revision: 40725
2009-05-18 14:46:32 +00:00
Cedric BAIL
b336298727
* Eet: Cleanup eet_data dump code.
...
SVN revision: 40643
2009-05-14 15:58:10 +00:00
Cedric BAIL
18493b6d1b
* eet_data: Cleanup a little eet_data_descriptor_decode.
...
SVN revision: 40109
2009-04-16 15:19:14 +00:00
Cedric BAIL
bdea85040b
* eet: Add API to directly store Eet_Node inside and Eet_File.
...
SVN revision: 40107
2009-04-16 12:43:34 +00:00
Cedric BAIL
b954d4dd49
* eet: Expose Eet_Node so we can now write external parser for eet_data. Still need
...
a way to retrieve an Eet_Node from an eet_data, perhaps some documentation and tests also.
SVN revision: 40105
2009-04-16 12:18:18 +00:00
Cedric BAIL
634df72c4a
* eet_data: Remove not used pointer.
...
SVN revision: 40035
2009-04-14 09:18:58 +00:00
Cedric BAIL
0dcb98f55f
* eet_data: Make it thread safe and fix some memory leak.
...
SVN revision: 39590
2009-03-19 19:00:46 +00:00
Carsten Haitzler
a510f6a593
llvm complaint fix from Tiago Falcão
...
SVN revision: 39469
2009-03-13 16:12:24 +00:00
Cedric BAIL
ee56641dc8
Remove unused variable and check error return.
...
SVN revision: 38342
2008-12-29 10:29:08 +00:00
Gustavo Sverzut Barbieri
ca1c7d5bfc
fix typo: cypher -> cipher
...
also reduce scope of ciphered and ciphered_len.
SVN revision: 37609
2008-11-13 20:49:18 +00:00
Cedric BAIL
0f36b190f1
Add crypto support to eet.
...
GNUTLS support by Arnaud de Turckheim <quarium@gmail.com>.
SVN revision: 37603
2008-11-13 16:31:13 +00:00
Sebastian Dransfeld
d40f7ebacc
formatting
...
SVN revision: 37080
2008-10-24 21:47:10 +00:00
Cedric BAIL
d0fe4b4f3f
* Bug fix :
...
- Array layout would be broken or worse not possible to reload at all if you put NULL pointer in it.
- Array of string now work.
- Fix a double free issue with array on double load.
* Add the test to detect this case.
SVN revision: 37051
2008-10-24 14:06:40 +00:00
Cedric BAIL
04edb0cbec
* Fix Hash of String bug.
...
* Add a test case for it.
SVN revision: 37029
2008-10-23 14:41:04 +00:00
Cedric BAIL
5c096e9ddb
* Fix bug with string included in a list found by Viktor Kojouharov.
...
* Add a test case for that one.
Problem was simple type inlining in complex structure (like list/hash/array) is
just a hack. We are creating a subtype with the data chunk. That work with INT
or SHORT for example, but not with STRING because it's a pointer to a STRING and
not directly the STRING. This result in a double pointer dereferencing where it
shouldn't. In fact STRING is not really like other simple data type. So we
should handle it differently.
Still need to fix Array and Hash.
SVN revision: 37024
2008-10-23 13:12:33 +00:00
Cedric BAIL
1e13a4aec2
Use eina conversion functions (Remove code from eet).
...
SVN revision: 36844
2008-10-20 09:44:34 +00:00
Cedric BAIL
1ab78edd6f
Instruct the compiler to inline the most used function. This really impact speed
...
with big edje file.
SVN revision: 35948
2008-09-11 11:26:09 +00:00
Cedric BAIL
89911e0559
Fix two source of memory leak.
...
SVN revision: 35616
2008-08-22 14:35:21 +00:00
Sebastian Dransfeld
dd429f0d8b
formatting
...
SVN revision: 35425
2008-08-10 09:33:55 +00:00
Sebastian Dransfeld
80674bcaf5
formatting
...
SVN revision: 35424
2008-08-10 09:25:21 +00:00
Carsten Haitzler
9c712115e4
unsigned long... better
...
SVN revision: 35227
2008-07-26 12:54:39 +00:00
Cedric BAIL
667c57f9fe
Improve speed by comparing pointer instead of calling strcmp (thanks to the
...
dictionnary's property).
SVN revision: 35157
2008-07-18 11:39:38 +00:00
Peter Wehrfritz
f5bd66341f
fix compile warnings
...
SVN revision: 35143
2008-07-17 20:28:59 +00:00
Cedric BAIL
00388c7fbd
Improve speed of eet_data freelist by using a hash table instead of just a pointer list.
...
SVN revision: 35141
2008-07-17 16:39:28 +00:00
Cedric BAIL
77bb260256
Improve decode speed by using precomputed hash.
...
SVN revision: 35140
2008-07-17 15:33:40 +00:00
Cedric BAIL
f9f12aec91
Fix INLINED_STRING allocation, this was causing the bug with edje_decc.
...
SVN revision: 34980
2008-07-02 12:10:12 +00:00
Cedric BAIL
d16456e061
Fix the bug with EET_T_UNKNOW/EET_G_UNKNOWN that did break the CVS.
...
Add a test to detect this bug and caught another one, not yet solved
with dump/undump of EET_T_UNKNOW/EET_G_UNKNOWN.
SVN revision: 34925
2008-06-27 15:26:53 +00:00
Cedric BAIL
86e4286496
This patch is a starting point for cleaning up eet_data.c.
...
It also add EET_G_VAR_ARRAY and EET_G_ARRAY thanks to
turran's (jorgeluis.zapata@gmail.com ) last year patch.
Of course we have test code for it and eet_data.c code
is covered around 90.1%. We need to test with garbage
data for increasing it more.
WARNING: API of eet_data_descriptor_element_add is not
clean and we will need to break it, if we want a clean
API. So this is the plan for version 2.0.0.
SVN revision: 34919
2008-06-26 15:47:25 +00:00
Cedric BAIL
e3a9048600
Remove some unused variable.
...
SVN revision: 34619
2008-05-19 16:01:50 +00:00
Cedric BAIL
4b23e38e3e
Remove use of sprintf by propagating the buffer size information.
...
SVN revision: 34618
2008-05-19 15:27:04 +00:00
Cedric BAIL
09e1b5d7da
Remove all use of strcpy as we already know the length.
...
SVN revision: 34617
2008-05-19 15:25:46 +00:00
Cedric BAIL
0755b54e76
The purpose of descriptor3 was to introduce a way to malloc/free less string. So do it.
...
SVN revision: 34587
2008-05-16 09:59:16 +00:00
Cedric BAIL
e5d9afb26f
Remove the wrong and dead code for basic type inside list/hash and put assert instead.
...
SVN revision: 34580
2008-05-15 14:16:46 +00:00
Cedric BAIL
f99bb3f047
Fix a bug with list or hash of basic type. They are now silently converted
...
to an implicit structure with the basic type inside.
SVN revision: 34579
2008-05-15 14:14:35 +00:00
Cedric BAIL
8040f27451
Fix a typo preventing the parsing of unsigned int.
...
SVN revision: 34578
2008-05-15 14:03:09 +00:00