Commit Graph

174 Commits

Author SHA1 Message Date
Cedric BAIL 48cd6930f1 eet: fix possible wrong size decoding for simple type.
SVN revision: 73923
2012-07-16 10:58:30 +00:00
Cedric BAIL ecffd3ae2f eet: detect overrun and underrun before everything goes wrong.
SVN revision: 73919
2012-07-16 10:38:37 +00:00
Cedric BAIL a5ba62c893 eet: remove shadow warning.
SVN revision: 69752
2012-03-29 13:48:09 +00:00
Vincent Torri 026f3439ed Eet: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family functions
SVN revision: 68091
2012-02-17 21:08:15 +00:00
Mike Blumenkrantz ce0bd5f36e remove annoying post-brace comments
SVN revision: 65819
2011-12-02 14:42:13 +00:00
Cedric BAIL f24f2501e1 eet: proper indentation.
SVN revision: 65296
2011-11-16 15:54:34 +00:00
Lucas De Marchi 8810e636e7 Use same type - warning--
SVN revision: 64981
2011-11-09 12:03:46 +00:00
Carsten Haitzler 8893a9ff35 ran ecrustify on eet. this seems to do a good job of eet. comments?
SVN revision: 64237
2011-10-21 05:40:01 +00:00
Cedric BAIL 64f3a6da0f eet: add eet_data_xattr helper.
SVN revision: 63413
2011-09-15 17:05:56 +00:00
Vincent Torri f9dc75a538 From: Vincent Torri <vtorri@univ-evry.fr>
To: enlightenment-devel@lists.sourceforge.net
Subject: Re: [E-devel] E SVN: discomfitor trunk/eet/src/lib
Date: Sat, 30 Jul 2011 00:54:04 +0200 (CEST)

On Fri, 29 Jul 2011, Enlightenment SVN wrote:

> Log:
> I blame this one on raster  

funny to make a spelling mistake in a sentence where the word 
'dictionnary' is used :)

Vincent

HOW RIGHT YOU ARE!


SVN revision: 61912
2011-07-29 23:07:54 +00:00
Vincent Torri ae859943a3 Eet : fix scanf format on Windows
SVN revision: 59475
2011-05-17 21:15:45 +00:00
Cedric BAIL 2316172755 eet: remove warning of unused code.
NOTE: keeping the code around as it may be usefull.


SVN revision: 57236
2011-02-22 12:23:12 +00:00
Cedric BAIL f09a81bf54 * eet: improve speed and memory usage when decoding EET_G_UNION,
EET_G_VAR_ARRAY and EET_G_ARRAY.

	This change has a direct impact on load time for Edje file. So
	please test it and report any issue.


SVN revision: 57013
2011-02-14 10:57:13 +00:00
Sebastian Dransfeld 6dbbb69012 remove double declared ret
SVN revision: 56702
2011-02-03 23:16:15 +00:00
Sebastian Dransfeld ae202461f1 prefix macro generated variable with __
SVN revision: 56701
2011-02-03 23:16:04 +00:00
Sebastian Dransfeld a65b05a13d formatting
SVN revision: 56700
2011-02-03 23:15:53 +00:00
Vincent Torri d88618afc5 EINA_MAGIC is already defined with a ';'. Remove it to fix
compilation with vc++

SVN revision: 55490
2010-12-11 07:58:41 +00:00
Carsten Haitzler e15da11630 use typedefs for fn pointers.
SVN revision: 55342
2010-12-07 06:39:18 +00:00
Cedric BAIL 46fd048e2c * eet: Improve speed of eet_data_read decoding. Mostly for array.
NOTE: with a major rewrite of the way array does the structure
	allocation/destruction it could be made much faster. That would
	improve speed for both edje file loading and efreet cache loading.
	But I will postpone that for after the release.


SVN revision: 55069
2010-11-29 18:38:24 +00:00
Carsten Haitzler 9c15e9abf7 bug exposed by cedric's leak and then my fix... :)
SVN revision: 53795
2010-10-23 04:36:32 +00:00
Cedric BAIL d0e18a3b2a * eet: fix build of data that doesn't match data descriptor.
SVN revision: 51677
2010-08-27 13:45:53 +00:00
Lucas De Marchi d8002ff386 Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Cedric BAIL ccc497b492 * eet: fix version and trigger the right alloc path.
SVN revision: 51093
2010-08-13 17:12:08 +00:00
Cedric BAIL d0f668a6ba * eet: fix bad allocation case triggered by edje new file format.
Bad news, I also discovered in the same time that we introduced an
	API/ABI breakage in 1.3.0. This patch does prevent it from coming
	again, sadly, it imply an ABI break that I didn't find a proper
	way to work around. So recompile eet and all the program that use
	it after that commit.


SVN revision: 51080
2010-08-13 15:21:52 +00:00
Cedric BAIL 348a4ef2fe * eet: fix leak in eet.
SVN revision: 51043
2010-08-12 14:37:36 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Sebastian Dransfeld 1c05469785 fix stupid align of *
SVN revision: 50721
2010-07-31 18:57:35 +00:00
Sebastian Dransfeld 5d1a9f4e0d remove space after *
SVN revision: 50719
2010-07-31 18:54:54 +00:00
Carsten Haitzler f7019f134d formatting. <- uncrustify
SVN revision: 50698
2010-07-31 01:54:48 +00:00
Carsten Haitzler c127ff73e7 fix formatting
SVN revision: 50576
2010-07-28 03:03:10 +00:00
Carsten Haitzler 926db95c54 testing uncrustify on eet. this shall be standard efl formatting from
now on. you may run indent on code and convert to your own formatting
if you want.. but all code MUST be "uncrustified" before being
cxommitted to svn or before generating patches. time to get the
formatting monster under control.



SVN revision: 50563
2010-07-28 01:45:57 +00:00
Vincent Torri 11f53993b0 put __UNUSED__ after parameter, not before
SVN revision: 49935
2010-06-29 10:47:06 +00:00
Vincent Torri 383343f251 On Windows 64, long is of size 32 bits and not 64 bits. Also
LONG_BIT is not defined on Windows.


SVN revision: 49934
2010-06-29 05:29:50 +00:00
Cedric BAIL 2042862423 * eet: refactor some code.
SVN revision: 48218
2010-04-22 14:43:51 +00:00
Cedric BAIL c22277e070 * eet: remove EET_G_INHERIT.
SVN revision: 48216
2010-04-22 09:56:22 +00:00
Cedric BAIL b0618cbc01 * eet: use const only when needed.
SVN revision: 48204
2010-04-21 16:10:55 +00:00
Cedric BAIL a5aaf1723b * eet: Add EET_G_VARIANT and EET_G_UNION.
This are the basis for a new edje file format.
	Next to come EET_G_INHERIT.


SVN revision: 48201
2010-04-21 14:00:24 +00:00
Cedric BAIL b7dcdf619a * eet: handle fixed point in data stream.
SVN revision: 48055
2010-04-16 14:44:29 +00:00
Cedric BAIL 7c14ed7617 * eet: we don't need to duplicate hash key when we could just point
to the Eet_File dictionnary entries.



SVN revision: 47806
2010-04-07 14:00:15 +00:00
Vincent Torri a8cc200870 * update Visual Studio project files
* declare alloca in eet_connection.c
 * remove the definition of __UNUSED__ (already done in config.h)
 * reorganize a bit the inclusion of header files so that
   the code is a bit more consistent


SVN revision: 47719
2010-04-03 05:29:44 +00:00
Cedric BAIL 3efbdeee6d * eet: minor API/code cleanup.
SVN revision: 47687
2010-04-02 13:48:36 +00:00
Gustavo Sverzut Barbieri ea4e8a0abb eet: mega doc update, still stuff to do.
* sync AUTHORS

 * add couple of groups, and change head.html to include "Modules"

 * Reorganize the Eet.h so header is better grouped and in an order
   that makes sense to the reader (as Eet.h gives the modules/group
   ordering).



SVN revision: 47327
2010-03-18 20:16:56 +00:00
Cedric BAIL 3e59d34441 * eet: Fix override of global symbols.
Patch from Albin "Lutin" Tonnerre <albin.tonnerre@gmail.com>


SVN revision: 46682
2010-03-01 11:03:35 +00:00
Cedric BAIL 5a087664ba * eet: Add an experimentale API for walking Eet_Node.
This API should be used to generate native scripting object from
	an Eet_Data.


SVN revision: 45389
2010-01-21 12:45:35 +00:00
Cedric BAIL a61eda93a4 * eet: Add mempool for Eet_Node structure.
SVN revision: 45259
2010-01-17 14:32:58 +00:00
Cedric BAIL 08fd28bfa6 * eet: Add eet_data_node_decode_cipher and eet_data_node_read_cipher.
SVN revision: 45062
2010-01-12 16:50:18 +00:00
Cedric BAIL f0fd392e9f * eet: MASSIV REWRITE OF EET_DATA !
Eet_Data now use more common code when doing dump/decode. This
	provide new functionnality, you can now do a list/array/hash of string.
	make test/coverage are now passing without problem with 79% of the code
	covered (mainly need to update test suite for fixed point). This rewrite
	is also a first for script langage to directly manipulate Eet_Data (more
	patch comming). It's also a cleanup of the Eet_Node API that could now
	be used just fine.

	Note: Previous dump will not be compatible with this update, but
	Eet_Data will.

	PS: I did some extensive test here with enlightenment, elementary_test,
	editje, elixir and eyelight. If you experience any weird behaviour that
	could be linked with eet_data (well almost anything that use the EFL),
	please report to me as soon as possible.


SVN revision: 45059
2010-01-12 12:38:59 +00:00
Cedric BAIL bd006b823c * eet_data: Don't fail on memory starvation.
SVN revision: 44755
2009-12-29 13:42:45 +00:00
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