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
Sebastian Dransfeld 07733bd0a1 Remove Ecore_Data
SVN revision: 45599
2010-01-26 20:42:49 +00:00
Cedric BAIL d8e1895350 * ecore: Use eina_log.
Patch from Mathieu Taillefumier.


SVN revision: 44637
2009-12-21 17:32:19 +00:00
Kim Woelders ed6538707d Add some static's.
SVN revision: 26967
2006-11-05 13:08:37 +00:00
Carsten Haitzler 3aef7f0132 too zealous - ecore_config needs to come back
SVN revision: 26840
2006-10-28 11:41:53 +00:00
Carsten Haitzler a0d2a33d04 remove test/example stuff
SVN revision: 26835
2006-10-28 09:55:50 +00:00
sebastid 3c480bdc56 Don't use internal functions!
SVN revision: 25514
2006-09-06 07:05:42 +00:00
handyande 229e127911 Latest Morten patch and some fixes
SVN revision: 19660
2006-01-08 19:45:11 +00:00
handyande 414d3e5352 latest patch from Morten Nilsen:
- fix indent in various places
- check flag rather than walking list in util
- eliminate multiple key searches while saving
- optimizations


SVN revision: 19115
2005-12-18 19:07:52 +00:00
handyande e270ac86eb getopt long patch from Morten Nilsen - thanks
SVN revision: 18946
2005-12-11 03:32:18 +00:00
handyande 0e7786ecc4 woops on the last patch
SVN revision: 18913
2005-12-08 12:35:11 +00:00
handyande a8752bb121 Thanks Morten Nilsen for your ecore_config patches - applied here and working nicely
SVN revision: 18903
2005-12-07 23:30:29 +00:00
handyande ddf8e48b35 update ecore_config app to match
SVN revision: 16754
2005-09-18 12:48:24 +00:00
sebastid d758ca86bb Header cleanup. Don't include unneeded headers in system lib header.
SVN revision: 16550
2005-09-05 10:17:08 +00:00
Carsten Haitzler 5fbfe89441 poolie patch
SVN revision: 15502
2005-06-23 03:33:43 +00:00