Commit Graph

23 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
Iván Briano d6f36ae575 'tis an array of pointers, not just a string
SVN revision: 47824
2010-04-07 22:09:26 +00:00
Vincent Torri ac2824d126 remove C99 features and use beautiful C89/BSD code
makes vc++ and win32 gcc/g++ happy


SVN revision: 47766
2010-04-05 17:48:08 +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
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 8744820a79 fix warnings
patch by Albin Tonnerre


SVN revision: 45433
2010-01-22 07:03:04 +00:00
Sebastian Dransfeld 73cde2ffa2 Make clang happy
SVN revision: 44257
2009-12-07 21:01:26 +00:00
Daniel Kolesa 2b81de7c58 Ecore_Getopt: Do not mark internal stuff as translatable.
SVN revision: 43317
2009-10-27 18:36:54 +00:00
Vincent Torri af6cde97d3 fix gettext stuff
to disable it, pass to configure --disable-nls



SVN revision: 42166
2009-09-01 17:27:23 +00:00
Gustavo Sverzut Barbieri ba79d71f95 have ecore+gettext stuff to actually compile.
SVN revision: 42157
2009-09-01 14:46:16 +00:00
Gustavo Sverzut Barbieri 21e66eec2b some parts I missed before.
SVN revision: 42156
2009-09-01 14:35:59 +00:00
Daniel Kolesa 2f319b9a5c Gettext support in Ecore_Getopt. Thanks to k-s :)
SVN revision: 42155
2009-09-01 14:15:37 +00:00
Vincent Torri 654330e183 warnings--
SVN revision: 42018
2009-08-26 15:43:45 +00:00
Rafael Antognolli 6129f4d71b New ecore_getopt callback to parse geometry size (WxH).
SVN revision: 40025
2009-04-13 20:29:57 +00:00
Gustavo Sverzut Barbieri 4a5c489216 Fix problem reported by clang.
By: Luis Felipe Strano Moraes



SVN revision: 39256
2009-02-26 22:02:00 +00:00
Vincent Torri 648fa70e12 fix warning with mingw32ce (getenv not declared)
fix compilation with mingw32ce (EAPI not correctly defined)


SVN revision: 39237
2009-02-26 07:08:12 +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
Gustavo Sverzut Barbieri 02ced33a33 Oops! ecore must not depend on ecore-evas!
move helper function inside ecore-evas.



SVN revision: 38250
2008-12-20 15:19:48 +00:00
Gustavo Sverzut Barbieri 1fc336c2ee ecore_getopt: common callbacks go in.
ecore_evas_list_engines and geometry_parse, they're used in almost all
applications using ecore_getopt, let's avoid replicating code.



SVN revision: 38247
2008-12-20 14:29:45 +00:00
Jonathan Atton 11c671429e include the headers in the correct order so that EAPI is correctly defined on Windows
from caro


SVN revision: 38234
2008-12-19 20:54:13 +00:00
Gustavo Sverzut Barbieri 62d0d7eca0 Easy to use and powerful getopt implementation.
Create a parser description and give it the parameters, that's it. You
can store values (automatically converting types!), count occurrences,
make it true or false, create a list, choose from a list of items or
even specify your own callback to process arguments!

It was inspired by Python's optparse: http://www.python.org/doc/2.5.2/lib/module-optparse.html


SVN revision: 37781
2008-11-24 00:49:04 +00:00