Commit Graph

55 Commits

Author SHA1 Message Date
Vincent Torri 019e86347b Embryo:
* remove all occurences of cegcc (not supported anymore)
* fix unistd.h guards
* remove useless headers in embryo_cc_prefix.c

SVN revision: 61433
2011-07-16 23:19:02 +00:00
Vincent Torri 42cf875234 Embryo : embryo_cc_sc1.c : delete temporary files on Windows
SVN revision: 61420
2011-07-16 07:38:33 +00:00
Carsten Haitzler 528b69105f embryo -> use eina_prefix.
SVN revision: 59487
2011-05-18 08:33:31 +00:00
Lucas De Marchi 99897788f1 Fix common misspellings
Following misspellings were fixed:

accross->across
calulate->calculate
existance->existence
existant->existent
isnt->isn't
paranthesis->parenthesis
reffered->referred
runing->running
statment->statement
tranformed->transformed
unfortunatly->unfortunately
usefull->useful



SVN revision: 51964
2010-09-08 03:33:11 +00:00
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
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
Vincent Torri 190d1aea83 fix PATH_MAX detection
SVN revision: 45071
2010-01-12 22:44:25 +00:00
Vincent Torri 4d3cd53a6f fix compilation with vc++
SVN revision: 44284
2009-12-08 17:34:57 +00:00
Carsten Haitzler 465030f25b check argc count before argv ptr.
SVN revision: 34476
2008-05-06 09:18:56 +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 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
Carsten Haitzler 6e452edfd4 patches applied as per emails :)
SVN revision: 28302
2007-02-10 17:23:09 +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
tsauerbeck 155dc59a6f removed duplicatestring(), which was horribly broken and pretty useless
SVN revision: 14186
2005-04-13 20:27:03 +00:00
tsauerbeck 0335fea64d properly include config.h
SVN revision: 14184
2005-04-13 20:01:23 +00:00
tsauerbeck 8b6e8a16c9 some more cleanup
SVN revision: 14177
2005-04-13 19:37:01 +00:00
tsauerbeck ba98ad2841 removed some unused code
SVN revision: 14175
2005-04-13 19:21:07 +00:00
tsauerbeck 5154569ca9 s/sc_printf/printf/ i hope i'm not missing anything :)
SVN revision: 14174
2005-04-13 19:18:12 +00:00
tsauerbeck 7f9e3204b1 remove no longer needed (crappy) code
SVN revision: 14062
2005-04-01 15:11:31 +00:00
tsauerbeck 207ee341a7 sanitized asm file handling
SVN revision: 13925
2005-03-26 16:44:12 +00:00
tsauerbeck b02572979a use a temporary file for the intermediate asm output
SVN revision: 13924
2005-03-26 16:37:25 +00:00
tsauerbeck 62785c2466 Don't simply change the extension of the input file to foo.sma if it doesn't end in '.sma' already. If we really want embryo_cc to only accept *.sma files, it should print an error message if we feed it something other than a *.sma file. To be defined ;)
SVN revision: 13922
2005-03-26 15:27:14 +00:00
tsauerbeck 383755fc56 removed some dead code
SVN revision: 13921
2005-03-26 15:21:02 +00:00
tsauerbeck c748aecba1 fixed switch statements with only one case statement
SVN revision: 13517
2005-02-26 14:46:07 +00:00
Carsten Haitzler f778cf70fb forcibly shut up about loose indentation!
SVN revision: 12399
2004-12-08 06:05:23 +00:00
tsauerbeck 63f3874903 better vim modelines for raster code
SVN revision: 11910
2004-10-19 16:50:27 +00:00
tsauerbeck 2a15427bf5 command line arguments are now handled in a sane way: '-i blah' instead of '-iblah' etc. removed error filename crap, we prefer to redirect stderr.
SVN revision: 11844
2004-10-12 16:57:38 +00:00
Carsten Haitzler 0d4c9b87ff ignore loose indentation :)
SVN revision: 11735
2004-09-28 03:06:21 +00:00
Carsten Haitzler dcac490cff back to previous. no snprintf's. one of these broke embryo_cc.
SVN revision: 11037
2004-07-27 00:58:25 +00:00
vacuum 422dc28718 Fix my previous snprintf commit.
SVN revision: 11015
2004-07-25 14:52:24 +00:00
vacuum 5345cd6a90 sprintf -> snprintf
SVN revision: 11008
2004-07-25 04:40:16 +00:00
tsauerbeck 44a33d1f1d fixed some warnings
SVN revision: 10778
2004-07-11 09:50:42 +00:00
digitalfallout 0af884c6ec sec fix
SVN revision: 10450
2004-06-06 15:43:05 +00:00
Carsten Haitzler 6567775653 notes...
SVN revision: 10240
2004-05-15 05:39:44 +00:00
Carsten Haitzler ae778d5ef9 dont use t! its not standard!
SVN revision: 9920
2004-04-27 08:05:12 +00:00
Carsten Haitzler 0d755cb255 formatting and all sorts of cleanup stuff... not anywhere near done or
perfect... :(


SVN revision: 9805
2004-04-20 03:50:11 +00:00
Carsten Haitzler 4059260663 shhh!
SVN revision: 9513
2004-03-28 05:14:58 +00:00
Carsten Haitzler aa5c25341f damn! dont screw with the filenames so much!
SVN revision: 9511
2004-03-28 04:53:35 +00:00