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
Cedric BAIL
86ffe2e502
Fix inlined string dump/undump.
...
SVN revision: 34570
2008-05-14 20:54:15 +00:00
Cedric BAIL
4cf13d10eb
Converting back an hash from a dumped text was broken.
...
SVN revision: 34569
2008-05-14 20:53:07 +00:00
Carsten Haitzler
5fccc31519
fix bug in eet decode of list and hashes of simple types. a bug waiting to
...
happen for sure.
SVN revision: 34384
2008-04-28 03:04:26 +00:00
Sebastian Dransfeld
2d5c5486ee
formatting
...
SVN revision: 34299
2008-04-17 14:09:48 +00:00
Carsten Haitzler
06bf5d5c13
cedrics eet -d fixes.. yay!
...
SVN revision: 34233
2008-04-10 08:57:03 +00:00
doursse
5e7b84a40e
cegcc (not mingw32ce) defines same structures, functions etc. in both in.h and winsock2.h. So do not include winsock2.h with that compiler
...
SVN revision: 34227
2008-04-09 08:27:17 +00:00
doursse
1b73237787
add unsued attribute when needed
...
SVN revision: 34184
2008-04-03 19:47:07 +00:00
doursse
59a88b9bc8
reorganise header files so that evil is better included. Please test before the release.
...
SVN revision: 34130
2008-03-28 17:17:43 +00:00
Carsten Haitzler
fcf201dea7
the rest of cedrics patchesfor fixing dictionaries and read_write
...
SVN revision: 33969
2008-03-09 16:16:40 +00:00
doursse
bb32035399
* define EAPI on Windows according to the following scheme:
...
- if Eet is built:
. if the shared lib is built, EAPI must be __declspec(dllexport)
. if the static lib is built, EAPI must be empty
- otherwise EAPI must be __declspec(dllimport)
* move config.h from Eet_private.h to source files so that
EAPI is correctly defined in Eet.h
* add notes for compilation with cegcc and mingw32ce in INSTALL
* add support for compilation with cegcc
* add indentation information for vi
* remove trailing spaces
SVN revision: 33959
2008-03-08 07:28:12 +00:00
doursse
a3b06c3a70
* EAPI_DEF is actually useless. go back to EAPI
...
before using the correct way to deal with
dllimport / dllexport on Windows
* remove some trailing spaces
SVN revision: 33949
2008-03-07 09:59:37 +00:00
Carsten Haitzler
b65d63440f
add cedrics dict check patch
...
SVN revision: 33946
2008-03-06 17:52:59 +00:00
doursse
c0414ae96c
use evil on win32:
...
* remove all the specific win32 code
* replace EAPI by EAPI_DEF in front of definitions of funtions
* no need to check windows.h, winsock2.h
* sys/mmap.h will be detected automatically (thanks to evil on win32)
* use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE as this macro is too recent (from autoconf 2.59c)
SVN revision: 33896
2008-03-02 06:49:48 +00:00
Carsten Haitzler
e076a78519
cedric's eet and edje patches to use eet dictionaries for strings.
...
SVN revision: 33873
2008-03-01 06:38:09 +00:00
Sebastian Dransfeld
d610a1bd9a
include files in the correct order
...
SVN revision: 33633
2008-01-27 13:17:22 +00:00
Sebastian Dransfeld
20e3248c9a
formatting
...
SVN revision: 33630
2008-01-27 12:55:29 +00:00
Carsten Haitzler
b35e3bd260
cedric's eet race patch
...
SVN revision: 33544
2008-01-21 01:09:51 +00:00
Sebastian Dransfeld
b45c8367cf
const
...
SVN revision: 33521
2008-01-18 18:29:29 +00:00
andrunko
2204cc1927
Added Ecore_IMF_Evas.
...
Removed Evas dependency from Ecore_IMF, that was requested by Ewl developers
in order to be able to integrate Ecore_IMF on it.
Added Ecore_IMF_Evas, a library with helper functions to use Ecore_IMF together
with Evas.
Now everybody should be happy.
SVN revision: 32812
2007-11-21 22:20:16 +00:00
Gustavo Sverzut Barbieri
8c9fc0fc42
Separate code and provide "double" version.
...
SVN revision: 31948
2007-10-03 14:28:07 +00:00
Gustavo Sverzut Barbieri
64f3e597e0
Float loading speedup.
...
SVN revision: 31940
2007-10-03 00:08:41 +00:00
Carsten Haitzler
d88b5cfe37
fix conversion to handle -0x0p+0 (negatives) properly - or at least matching
...
the output.
SVN revision: 31810
2007-09-25 23:41:03 +00:00
doursse
e769f25d10
* Add conversion functions to replace the use of snprintf with %a
...
* remove useless defines
* minor cleanups
fixes bugs #181 and #182
SVN revision: 31805
2007-09-25 18:26:49 +00:00
Sebastian Dransfeld
bc1add673e
Fix compiler warnings.
...
SVN revision: 31719
2007-09-14 23:38:17 +00:00
Carsten Haitzler
e45ff14147
that was a misdirected optimisation. remove.
...
SVN revision: 31660
2007-09-09 02:00:45 +00:00
Carsten Haitzler
f23046c780
ok- tying to remove redundant nul/0 items seems to have broken something -
...
put them back.
SVN revision: 31659
2007-09-09 01:46:47 +00:00
Carsten Haitzler
67ab2130ac
fix qout and backslash escaping
...
SVN revision: 31654
2007-09-08 15:32:33 +00:00
Carsten Haitzler
d6510b0c39
and remove an extra l
...
SVN revision: 31652
2007-09-08 09:38:53 +00:00
Carsten Haitzler
0655006f42
and now we have a small tool that can extract, import, list, decode, encode
...
etc. data from eet files. just run eet for usage.
SVN revision: 31651
2007-09-08 09:35:41 +00:00
Carsten Haitzler
8cb216641c
ok- all you whiners. eet data encodings are reversable now without edd info.
...
there are api calls ot dump any eet encoded data lump into text and re-encode
into binary blob. no tools currently - that can be done later, but all the
api calls in eet that you need are there, as well as data in the blob.
SVN revision: 31649
2007-09-08 07:44:03 +00:00
Sebastian Dransfeld
98b5b625ab
Move hash gen func to own file.
...
SVN revision: 27605
2006-12-28 15:23:47 +00:00
Sebastian Dransfeld
0c773c9358
Fix memleak.
...
SVN revision: 27491
2006-12-17 11:20:25 +00:00
Sebastian Dransfeld
2318625fdc
Fix memleak.
...
SVN revision: 27490
2006-12-17 11:07:23 +00:00
Sebastian Dransfeld
43af41b5e1
Store hashes. Please review.
...
SVN revision: 27489
2006-12-17 11:00:45 +00:00
Sebastian Dransfeld
a6c47b583c
When put'ing data we should not modify the source, so add const modifier.
...
This is a preparation for storing hashes, which uses const on the key.
SVN revision: 27488
2006-12-17 10:58:35 +00:00
Sebastian Dransfeld
895ddf87be
Move common error code to the end of the function.
...
SVN revision: 27482
2006-12-16 22:27:18 +00:00
Sebastian Dransfeld
aabc930623
Fix typo.
...
SVN revision: 27465
2006-12-15 20:16:29 +00:00
Kim Woelders
bcd4e797d6
Add const, fix warnings.
...
SVN revision: 26962
2006-11-05 12:14:08 +00:00
Carsten Haitzler
3a85bfb709
cedric's mmap patch
...
SVN revision: 23413
2006-06-13 10:20:22 +00:00
stffrdhrn
4c5b9e1f24
More cleanups:
...
* fix more requirements for const
SVN revision: 20985
2006-03-04 02:46:24 +00:00
stffrdhrn
e2074460ce
Clean ups
...
* char * -> const char * where needed
SVN revision: 20984
2006-03-04 02:11:03 +00:00
Carsten Haitzler
d08bfbb6c6
ok- visibility disabled for now - works on x86 32bit. amd64 is broken (gcc
...
bug it seems) need to explore this more.
SVN revision: 19680
2006-01-10 07:32:56 +00:00
Carsten Haitzler
7554f8ee36
actually make symbol hiding work!
...
SVN revision: 19314
2005-12-27 17:17:31 +00:00
Carsten Haitzler
f8dd4d1af7
support special strign and alloc methods
...
SVN revision: 18731
2005-11-30 15:36:19 +00:00
tsauerbeck
6d73fde23a
warnings
...
SVN revision: 18701
2005-11-29 11:32:10 +00:00
rbdpngn
dfa6c0196c
Use a pre-allocated buffer on the stack for storing temporary chunks.
...
SVN revision: 18669
2005-11-27 18:54:02 +00:00
Carsten Haitzler
40ae019495
seriously - no one uses dynamic buffers for setting up an eet descriptor -
...
theyare fixed strings. so why strdup them? use them direct. they are in the
read-only segment already - keep them there! :)
SVN revision: 18667
2005-11-27 16:06:55 +00:00
Carsten Haitzler
f42422b558
less allocs!
...
SVN revision: 18666
2005-11-27 14:32:44 +00:00
Carsten Haitzler
4365d69079
handle NULL strings and "" as the same - and only produce null strings to
...
avoid tonnes of 1 byte allocs
SVN revision: 18615
2005-11-23 12:55:43 +00:00
Carsten Haitzler
0b399a3c1a
oops - leak. fixed
...
SVN revision: 18266
2005-11-04 07:16:50 +00:00
Carsten Haitzler
4c88b00112
reduce some allocs
...
SVN revision: 18260
2005-11-04 03:22:22 +00:00
sebastid
39998058bd
Unused variable
...
SVN revision: 17156
2005-10-04 11:31:44 +00:00
Carsten Haitzler
cf3732d8b9
solaris breakage - fix.
...
SVN revision: 15956
2005-07-30 09:09:31 +00:00
tsauerbeck
cc37e8166f
warnings ;)
...
SVN revision: 14946
2005-05-26 09:43:23 +00:00
Carsten Haitzler
67506e226f
and lo-and-behold. eet gets faster! a lot faster for data chunk decoding
...
(used by edje and ecore_config and e_config) and just general eet archive
opening times...
SVN revision: 14943
2005-05-26 03:57:57 +00:00
Carsten Haitzler
2f81db8bb2
whitespace + unsigned
...
SVN revision: 14917
2005-05-23 04:32:04 +00:00
Carsten Haitzler
4acd48f5af
use %a for more precision
...
SVN revision: 14848
2005-05-19 00:13:25 +00:00
Carsten Haitzler
40aca025df
clean up code and move image related code to its own file
...
SVN revision: 14651
2005-05-07 16:46:26 +00:00
Carsten Haitzler
f5d79011d1
binary mode... and...
...
close file AFTER finish off of decompress! :)
SVN revision: 12046
2004-10-28 09:54:02 +00:00
tsauerbeck
6019341904
fixed some warnings
...
SVN revision: 10813
2004-07-13 18:23:16 +00:00
Carsten Haitzler
68aac0d54c
mipspro happiness
...
SVN revision: 9966
2004-04-29 01:32:35 +00:00
Carsten Haitzler
d707df4f5c
changes to support evoak efficiently
...
SVN revision: 9830
2004-04-21 06:38:37 +00:00
Carsten Haitzler
12027a59db
back to 0.9.0
...
SVN revision: 8576
2004-01-20 02:02:33 +00:00
tsauerbeck
9a048bd058
zero the header info before writing it. this wasn't a critical bug, but it might help debugging and it shuts up valgrind.
...
SVN revision: 8521
2004-01-17 15:01:19 +00:00
Carsten Haitzler
0bd04fcad7
alignment niceness for ARM :)
...
SVN revision: 7127
2003-07-10 23:18:42 +00:00
Carsten Haitzler
0656623f54
now make eet REALLY not leak if a parse error occurs in decoding serialized
...
data struct.
SVN revision: 7114
2003-07-07 22:36:37 +00:00
Carsten Haitzler
f54245420a
make sure eet doesn't leak on "bad decoding". this means api changes though -
...
sorry.
SVN revision: 7112
2003-07-07 07:52:20 +00:00
Carsten Haitzler
1fafc49b8d
endianess bugzors!
...
SVN revision: 7053
2003-06-21 05:23:45 +00:00
Carsten Haitzler
32061346b6
oops. memfile compatability layer bug. fixed. using ftell now. also added in
...
an extra "if" for "if quality >= 90 then make pixel UV sampling 1x1 not 2x2
as normal for jpeg encoding"
SVN revision: 7040
2003-06-17 08:12:03 +00:00
Carsten Haitzler
dfe36d9ad5
null data struct write out safe...
...
SVN revision: 7031
2003-06-16 13:22:48 +00:00
Carsten Haitzler
4cb41d0dd2
be null string pointer safe
...
SVN revision: 7009
2003-06-11 09:09:17 +00:00
Carsten Haitzler
37fbcbf7d7
memfile abstraction for the solaris/bsd weenies :) :) :)
...
SVN revision: 6651
2003-02-03 01:07:58 +00:00
Carsten Haitzler
bfe9713eb8
NULL names for edd's are not valid... BARF
...
SVN revision: 6577
2003-01-13 06:40:49 +00:00