Commit Graph

152 Commits

Author SHA1 Message Date
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
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