Commit Graph

39 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
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
Cedric BAIL fbe9064310 * ecore: Ecore callback really should return Eina_Bool.
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Davide Andreoli ee29a2423d ecore_file_download(): Call the completion_cb (with error status) when a download is aborted
SVN revision: 48988
2010-05-18 23:06:07 +00:00
Vincent Torri 898768c963 various fixes for vc++. I'll add the Visual Studio projects later
SVN revision: 47758
2010-04-05 08:26:48 +00:00
Davide Andreoli d2f31bbf04 More doxy for ecore_file_download() and ecore_file_download_abort()
SVN revision: 47200
2010-03-14 10:53:14 +00:00
Gustavo Sverzut Barbieri dba2a95572 warnings--
Ecore now goes clean on -Wall -Wextra :-)



SVN revision: 46672
2010-02-28 23:27:47 +00:00
Vincent Torri 9cc34d070a define ecore_file_dowbload_abort when ecore_con is not available
(that is : it does nothing :)

SVN revision: 43916
2009-11-23 09:05:02 +00:00
Jonathan Atton 3f3f79cd88 Ecore : Fix ecore con destroy
SVN revision: 43689
2009-11-14 13:43:38 +00:00
Jonathan Atton 8d55d3f443 Ecore : ecore_dowload return the job and we can canceled it.
SVN revision: 43668
2009-11-13 17:51:52 +00:00
Vincent Torri 297e9817df allow the compilation of ecore_file without ecore_con
SVN revision: 43075
2009-10-14 17:29:13 +00:00
Vincent Torri 4072d0b23d * check the returned value of the _init() functions
* simplify a bit the init/shutdown functions


SVN revision: 42995
2009-10-10 05:28:43 +00:00
Cedric BAIL 6978e98dc6 * estickies,
* etk,
	* PROTO/exalt,
	* E-MODULES-EXTRA/diskio,
	* E-MODULES-EXTRA/drawer,
	* E-MODULES-EXTRA/penguins,
	* E-MODULES-EXTRA/slideshow,
	* E-MODULES-EXTRA/mail,
	* E-MODULES-EXTRA/forecasts,
	* E-MODULES-EXTRA/iiirk,
	* E-MODULES-EXTRA/places,
	* e,
	* ewl,
	* ecore,
	* elitaire,
	* entrance,
	* e_dbus,
	* efreet: Here we go, move from Ecore_List to Eina_List.

	NOTE: This patch is huge, I did test it a lot, and I hope nothing is
	broken. But if you think something change after this commit, please
	contact me ASAP.


SVN revision: 39200
2009-02-25 11:03:47 +00:00
Vincent Torri e18508b701 remove a bit the mess n ecore. It's just the first patch...
* add vim header
 * include config.h when necessary
 * fix the order of some include
 * move the standard header in ecore_private.h to the source files

I have recompiled all the efl and e17, and e17 seems to work fine with these changes.
If you encounter problems with that commit, let me know.


SVN revision: 38864
2009-01-31 18:33:39 +00:00
doursse cc0ca9325e integration of evil in ecore. It's compiling on windows and my ubuntu. The commit is big, please report any problem
SVN revision: 34671
2008-05-26 05:16:34 +00:00
Cedric BAIL 6a9ef0e67f Remove an unused static function.
SVN revision: 34438
2008-05-02 15:33:09 +00:00
Carsten Haitzler 1bc9f155bb and only delete job list if its not null.
SVN revision: 34063
2008-03-20 17:56:41 +00:00
Dan Sinclair 74873d6559 - set the job list to NULL. If this isn't done and we re-init the library (as efreet does during unit testing) the list won't get re-created and crap memory will get freed on the next shutdown
SVN revision: 34058
2008-03-20 02:10:55 +00:00
Carsten Haitzler ab9940c2eb try again - missed the wrapping #ifdef
SVN revision: 33983
2008-03-11 10:24:10 +00:00
Carsten Haitzler 7a53260b55 build again if no curl there.
SVN revision: 33980
2008-03-11 03:38:22 +00:00
Carsten Haitzler 2f4173e229 cedrics ecore_cn_url stuff for file downloads
SVN revision: 33970
2008-03-09 16:43:32 +00:00
Carsten Haitzler 955a961c57 patch from massimilano for following redirections
SVN revision: 33478
2008-01-14 01:58:43 +00:00
Sebastian Dransfeld 0c55f79188 fix memleak (Thanks vinicius).
SVN revision: 32464
2007-11-07 21:15:11 +00:00
Davide Andreoli 8ea12a434f Ecore_File documented with doxy tags
SVN revision: 31198
2007-08-06 20:00:28 +00:00
Peter Wehrfritz cd20fbc9d9 *API BREAK* see the discussion in the mailing list. misc and e_modules will follow
SVN revision: 30970
2007-07-25 17:01:04 +00:00
Carsten Haitzler 9177a1e729 1. make curl interactivity MUCH better.
2. make ecore_evas use the norender call to delete objects aggressively for
hiddent canvases.


SVN revision: 28015
2007-01-16 10:17:46 +00:00
Sebastian Dransfeld c07d9dd245 Limit curl run to 0.2 seconds.
SVN revision: 27937
2007-01-13 01:49:42 +00:00
Kim Woelders 82a7290a4a Fix warnings.
SVN revision: 27036
2006-11-10 19:11:12 +00:00
Kim Woelders 563035d3db Fix warnings.
SVN revision: 26974
2006-11-05 16:34:30 +00:00
balony 54c1f3e1ee Adding a function to abort all downloads.
SVN revision: 25634
2006-09-08 16:52:29 +00:00
codewarrior 237a7678de - new addition for ecore_file_download. now we have a progress_cb from curl so we know how much of the file we've downloaded.
SVN revision: 21928
2006-04-07 12:27:39 +00:00
Carsten Haitzler 2c52634e85 and yet more warning removal
SVN revision: 19568
2006-01-06 18:46:30 +00:00
sebastid b6ce3afdb5 Only run init when count is 1 and shutdown when count is 0
SVN revision: 16649
2005-09-07 08:57:08 +00:00
sebastid efe51da1dc init count
SVN revision: 16648
2005-09-07 08:50:25 +00:00
Dan Sinclair 1c6ef60b3c - add ecore_file_download_protocol_available so we can determine if the
protocols we need are compiled in or not


SVN revision: 15488
2005-06-22 14:51:37 +00:00
Dan Sinclair 6d166a447e - call the job completion callback after we've closed the file so we know
its all written out to disk.


SVN revision: 15473
2005-06-22 02:00:35 +00:00
sebastid 97631c20b2 Remove debug.
SVN revision: 15404
2005-06-18 00:23:00 +00:00
sebastid 4548e51fa5 Download files with CURL. Thanks to Simon Poole.
SVN revision: 15400
2005-06-17 23:52:32 +00:00
sebastid 6dd0159c60 Add a ecore_file_download function. For now it can "download" urls pointing
to local files. Should be extended to support several types.


SVN revision: 15346
2005-06-16 01:54:12 +00:00