Commit Graph

175 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
Carsten Haitzler 1a40634b0e embryo now ready
SVN revision: 51169
2010-08-16 08:41:15 +00:00
Carsten Haitzler fadfd000e9 fix up copying here too. other license info has always been
there - just not shuffled into standard copying. fix.



SVN revision: 51143
2010-08-15 22:07:29 +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
Christopher Michael c3ed53b869 Move Embryo.h header to own dir.
SVN revision: 50145
2010-07-09 06:31:53 +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
Carsten Haitzler c4ea029772 larger block size for native call array
SVN revision: 49443
2010-06-04 06:09:15 +00:00
Carsten Haitzler a14cd60f77 add version info to embryo
SVN revision: 49275
2010-05-29 06:40:07 +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
Vincent Torri 61bdd4cb94 make embryo compile with vc++ and suncc. No change for gcc.
Though i don't know if it is the correct fix... Raster, if
you have some time, can you check it, please ?

SVN revision: 43261
2009-10-25 10:19:38 +00:00
Vincent Torri 2d88e6ebad simplify embryo_init() and embryo_shutdown() a bit
SVN revision: 42957
2009-10-08 06:35:48 +00:00
Vincent Torri 67690abfe7 opensolaris support of the packed attribute
SVN revision: 42739
2009-09-27 05:50:58 +00:00
Vincent Torri 2fef98ba8a use __attribute__((packed)) if __GNUC__ is defined
use #pragma pack if vc++ is used
use nothing otherwise (should we exit with an error in that case ?)

SVN revision: 42533
2009-09-16 22:02:59 +00:00
Carsten Haitzler e39dc41493 1. embryo shoudl have soname
2. yes local.conf slipped in - ignore
3. added soname version release to module arch dirs
4. adapted extra-modules to use the revision in arch
5. made e17 also have a release rev
6. dummy release stuff in eet - wont use it as its already released.



SVN revision: 40267
2009-04-21 14:17:42 +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 67acca9238 move header files from embryo_private.h to source files
SVN revision: 36915
2008-10-21 08:40:54 +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
doursse e190b8a0f0 fix headers order for vc++ compiler. Tanks to Dmitriy Mazovka
SVN revision: 34713
2008-05-31 06:24:46 +00:00
Carsten Haitzler 4e318745a8 and handle if the cl;ock is set backwards!
SVN revision: 34680
2008-05-27 08:03:46 +00:00
Carsten Haitzler e3519ff383 fix tzset call.
SVN revision: 34679
2008-05-27 08:00:17 +00:00
Carsten Haitzler 2c60edf612 fix %% in snprintf
SVN revision: 34564
2008-05-14 06:10:58 +00:00
Carsten Haitzler ad70ab93f4 handle tz updates with localtime - limit calls to more than 1 second apart.
SVN revision: 34553
2008-05-13 05:14:19 +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 67aaff7308 embryo_private.h is not a source file
SVN revision: 34261
2008-04-13 09:22:12 +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 abfa4b4cd8 missing flag for cegcc
SVN revision: 34244
2008-04-11 05:31:02 +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
Greg Garner b5a6772932 clean up license for embryo to match zlib elsewhere as per greg:
From: Greg Garner <Greg@rt-eng.com>
To: Jan L��bbe <j.luebbe@tu-bs.de>
Subject: Re: License of your contribution to SMALL/PAWN
Date: Mon, 03 Mar 2008 14:49:56 -0600
CC: greg@dluxlink.com, enlightenment-devel@lists.sourceforge.net
Reply-To: Greg@rt-eng.com

Dear enlightenment developers:

Please change the copyright to be the way zlib is. My intention was to
release this to be freely used source. Let me know if you need any
additional information to proceed.
It is pretty cool that this code that I wrote so long ago is still being
used!

Thanks

Greg Garner
(formerly of Artran Inc).
www.rt-eng.com
greg@rt-eng.com


SVN revision: 33914
2008-03-04 10:36:23 +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