Commit Graph

105 Commits

Author SHA1 Message Date
Lucas De Marchi d8002ff386 Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
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 13d2d20efa Remove comparisons to NULL
Rather than using "== NULL" or "!= NULL", use expression or !expression where
possible.

Patch automatically generated by coccinelle from badnull.cocci and
badnull2.cocci



SVN revision: 51023
2010-08-11 20:35:26 +00:00
Lucas De Marchi 6b5d5eab73 Do not compare pointers to 0
SVN revision: 50973
2010-08-10 19:24:38 +00:00
Gustavo Sverzut Barbieri 0f80a2778c unscrew what lucas screwed with his patch-fu
SVN revision: 50819
2010-08-04 18:33:24 +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
Lucas De Marchi 33892c5fc4 Do not clobber type with var name
value => val, because value is a pre-defined type



SVN revision: 50063
2010-07-06 14:16:41 +00:00
Vincent Torri 7bd971f3ae include Evil.h for vc++
SVN revision: 47528
2010-03-28 08:43:53 +00:00
Vincent Torri dbb9cf4df7 add guards around the inclusion of config.h
SVN revision: 47527
2010-03-28 08:36:55 +00:00
Vincent Torri 9aec8f6722 fix warnings on 64 bits arch
patch by Albin Tonerre, modified by me so that vc++ is happy


SVN revision: 45428
2010-01-22 06:37:19 +00:00
Sebastian Dransfeld 604892a3c4 make clang happy
SVN revision: 45192
2010-01-15 19:44:25 +00:00
Vincent Torri 3790685a4c binary can be disabled
SVN revision: 45169
2010-01-15 06:06:33 +00:00
Vincent Torri 190d1aea83 fix PATH_MAX detection
SVN revision: 45071
2010-01-12 22:44:25 +00:00
Cedric BAIL 41b0fb73a0 * embryo: Prevent use of unitialized data.
SVN revision: 44547
2009-12-18 17:40:13 +00:00
Vincent Torri 4d3cd53a6f fix compilation with vc++
SVN revision: 44284
2009-12-08 17:34:57 +00:00
Vincent Torri db570a48c1 fix opensolaris compilation
SVN revision: 44057
2009-11-30 18:08:33 +00:00
Carsten Haitzler b195020d35 fix prefix env vars to use embryo - not e
SVN revision: 38447
2009-01-04 11:05:10 +00:00
Vincent Torri 9be35d243b autotools cleanups:
* reorganize configure.ac
 * remove eina dependency, use the new ac_attribute m4 macro
 * fix Libs.private field and add Requires field in embryo.pc
 * rename embryo.c.in to embryo.dox.in
 * add doc rule to build the documentation. The doc will completely
   be fixed in the next commit



SVN revision: 37116
2008-10-26 08:04:06 +00:00
Vincent Torri e835bbcf6c * autotools cleanup
* fix compilation with mingw32ce


SVN revision: 36913
2008-10-21 08:32:23 +00:00
ptomaine 1b9d1e312b Fix embryo, i.e. add eina CFLAGS and LDFLAGS.
SVN revision: 36869
2008-10-20 18:47:00 +00:00
Cedric BAIL 02bf306fdd Remove macro provided by Eina.
SVN revision: 36863
2008-10-20 16:34:59 +00:00
Carsten Haitzler 465030f25b check argc count before argv ptr.
SVN revision: 34476
2008-05-06 09:18:56 +00:00
doursse 62fcb69586 * use @datadir@/@PACKAGE@ and not @PACKAGE_DATA_DIR@ in embryo.pc.in
* use --enable-auto-import with CeGCC
 * put WIN32_CFLAGS in CFLAGS and not CPPFLAGS
 * remove warning when configuring with newest (2.62) autoconf
 * clean MAINTAINERCLEANFILES and EXTRA_DIST
 * formatting (should be very close to how eet is formatted, now)


SVN revision: 34320
2008-04-20 06:14:43 +00:00
doursse a86946850d remove trailing spaces and add indent doc for vi
SVN revision: 34246
2008-04-11 19:06:18 +00:00
doursse 9817e365b1 fix gettimeofday on windows and add __UNUSED__ for unused parameters
SVN revision: 34245
2008-04-11 05:59:42 +00:00
doursse 5b899a19e3 initialize correctly the stuctures
SVN revision: 34243
2008-04-11 05:29:33 +00:00
doursse 54c28a5391 add guards when including config.h
SVN revision: 34132
2008-03-28 18:32:09 +00:00
doursse ee23c4b248 * make cegcc aware of the _WIN32 macro
* fix warning


SVN revision: 34078
2008-03-22 08:31:38 +00:00
doursse 45e9085e13 linux has a case sensitive fs
SVN revision: 34074
2008-03-22 00:25:07 +00:00
doursse 53c0a2d01d * add evil support and remove evil windows code
* correctly handle alloca include
 * remove trailing spaces


SVN revision: 34072
2008-03-21 17:18:25 +00:00
Carsten Haitzler 7bc642aff1 fix path string stuff to not be able to overflow (unlikely tho - ever)
SVN revision: 33571
2008-01-24 00:25:13 +00:00
doursse 4317fe9155 update win32 port : use fulpath instead of a function, use correct temp dir value and correct open function according to the compiler
SVN revision: 32881
2007-11-25 11:38:49 +00:00
doursse 59d2a4a627 autostuff improvements:
* use non deprecated version of AC_INIT and AM_INIT_AUTOMAKE
   and check the required minimal versions.
 * add bzipped distribution archive
 * add AC_LIBTOOL_WIN32_DLL
 * forbid libtool to check fortran and c++ compilers
 * compute libtool versioning from the version of the package
 * pass the directories based on ${prefix} to the preoprocessor
   with the -D option
 * replace INCLUDES, wich is deprecated since 2001 by AM_CPPFLAGS
 * remove useless -L flags in *_la_LDFLAGS


SVN revision: 32340
2007-11-04 09:44:15 +00:00
Carsten Haitzler 6e452edfd4 patches applied as per emails :)
SVN revision: 28302
2007-02-10 17:23:09 +00:00
Carsten Haitzler 449550166b remove embryo debug/test stuff - move to elsewhere
SVN revision: 26823
2006-10-28 06:45:49 +00:00
sebastid ab48ebabe5 Remove unused variable.
SVN revision: 25520
2006-09-06 07:11:31 +00:00
Carsten Haitzler 49bd390565 some prefix fixes for env vars
SVN revision: 24104
2006-07-21 15:55:54 +00:00
Carsten Haitzler 30cad4260b fix bin/lib prefix - pass as -D
SVN revision: 23874
2006-07-13 16:35:46 +00:00
Carsten Haitzler 3bc78e5f07 add prefix detection to embryo
SVN revision: 23820
2006-07-10 18:31:18 +00:00
sebastid 95b180caa0 Don't use strlen to check if a string is empty.
SVN revision: 18270
2005-11-04 08:16:24 +00:00
Carsten Haitzler d28cb025f3 shaddap callipygous
:)


SVN revision: 17923
2005-10-25 02:39:44 +00:00
Carsten Haitzler 1f9fd57215 include fix
SVN revision: 17566
2005-10-15 08:48:43 +00:00
Carsten Haitzler 6b1e15b267 packed poo --
SVN revision: 14891
2005-05-22 03:01:22 +00:00
tsauerbeck 7b41e4e522 include config.h
SVN revision: 14188
2005-04-13 20:36:07 +00:00
tsauerbeck 9becc884d2 removed unused function
SVN revision: 14187
2005-04-13 20:34:51 +00:00
tsauerbeck 155dc59a6f removed duplicatestring(), which was horribly broken and pretty useless
SVN revision: 14186
2005-04-13 20:27:03 +00:00
tsauerbeck c1aa21b165 next round of cleanup
SVN revision: 14185
2005-04-13 20:16:30 +00:00
tsauerbeck 0335fea64d properly include config.h
SVN revision: 14184
2005-04-13 20:01:23 +00:00
tsauerbeck eee6e7059d removed embryo_cc_sclinux.h
SVN revision: 14183
2005-04-13 19:52:55 +00:00
tsauerbeck 3559fa001e cleanup
SVN revision: 14182
2005-04-13 19:50:58 +00:00