Commit Graph

15 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 d8e1895350 * ecore: Use eina_log.
Patch from Mathieu Taillefumier.


SVN revision: 44637
2009-12-21 17:32:19 +00:00
Vincent Torri 29b0f87503 uniformize the inclusion of config.h
SVN revision: 38865
2009-01-31 18:56:17 +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
Peter Wehrfritz c51a00a7d3 add constness; formatting
SVN revision: 34772
2008-06-08 12:38:56 +00:00
handyande 7c24ebf4e0 Morten Nilsen's latest patches for ecore_config argb etc
SVN revision: 19655
2006-01-08 14:57:14 +00:00
Carsten Haitzler 651a356e6a warnings - hush.
SVN revision: 19567
2006-01-06 18:26:37 +00:00
handyande bda13919e3 Namespaces avoid system clases - sorry
SVN revision: 16752
2005-09-18 12:25:57 +00:00
handyande 59de2993b3 .edj ify ecore_config
SVN revision: 13863
2005-03-22 20:40:19 +00:00
Carsten Haitzler de28192bda kwo's ecore cleanup patch
SVN revision: 13559
2005-03-02 07:06:44 +00:00
handyande b186e3a476 A few fixes ready for some more E config things
recommend that folk remove their config.eets of convenient, doing so will remove the e tab from examine :)


SVN revision: 12326
2004-12-01 23:07:43 +00:00
handyande a4112a046f Beginning of ecore_config_arg support for arguments with no direct property relationship
see engage for demo usage


SVN revision: 12320
2004-12-01 00:49:18 +00:00
handyande 3a1f56385d Ecore_Config no longer saves configurations passed on the command line - due to popular demand
SVN revision: 12287
2004-11-27 23:14:30 +00:00
handyande a8ea9cd5a3 Start tidying ecore_config
SVN revision: 11869
2004-10-13 19:43:16 +00:00