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
Mike Blumenkrantz
bb0b72558f
add lengthy comment to document an obvious bug that someone who knows the code should fix
...
FIX THIS!!!!!!!!!!!!!
SVN revision: 50704
2010-07-31 05:01:34 +00:00
Cedric BAIL
ba95606159
* edje: prevent some segv in edje_cc and detect wrong edje file
...
before compiling them.
Patch by Rafael Fonseca <rfonseca@profusion.mobi>.
SVN revision: 49999
2010-07-02 15:37:37 +00:00
kiwi
b55d9b91c3
preprocess the edc file on OpenBSD as on MacOS X.
...
NetBSD and FreeBSD might have the same issue
fixes handling of #define and comments in edc files, so e theme builds now on OpenBSD
SVN revision: 49113
2010-05-21 19:58:40 +00:00
Vincent Torri
d1c0ea07fc
force gcc to use C preprocessor (otherwise the file extension (.edc) is
...
breaking that behavior)
SVN revision: 47338
2010-03-18 22:52:28 +00:00
Vincent Torri
a8e1557dbc
fix edje_cc on Mac OS X: c++ comments were not removed, so pass
...
gcc -E on the edc file a second time. As Linux gcc does not like
it, compile that part only on Mac OS X.
SVN revision: 47280
2010-03-16 05:49:13 +00:00
Gustavo Sverzut Barbieri
cc5e332525
remove warnings from edje binaries.
...
SVN revision: 46647
2010-02-28 16:14:50 +00:00
Sebastian Dransfeld
ef970dfb10
make clang happy
...
SVN revision: 45195
2010-01-15 20:01:42 +00:00
Cedric BAIL
018a9dad66
* edje: Use Eina_Log.
...
Patch from Mathieu Taillefumier.
SVN revision: 44655
2009-12-22 13:46:00 +00:00
Carsten Haitzler
5b9e0b0ead
fix return checks. broke compile!
...
SVN revision: 44523
2009-12-17 11:58:15 +00:00
Vincent Torri
c7c66a652a
add Sun Studio support when parsing edc files. Technically,
...
it means that e17 can run on OpenSolaris using Sun Studio
or gcc. It actually runs if temperature and battery modules
are disabled as they don't compile yet.
Also, the problem on Mac OS X problem with C++ comments
can be fixed (I think). See FIXME in that patch
SVN revision: 44519
2009-12-17 00:50:43 +00:00
Carsten Haitzler
3ec78b10c3
edje_cc -> add % modulo to math eval and floor() and ceil()
...
SVN revision: 44301
2009-12-09 04:30:45 +00:00
Vincent Torri
10b4ebc4d4
* fix some warnings
...
* move variable declarations at the top of the bloc
SVN revision: 43265
2009-10-25 11:40:06 +00:00
Vincent Torri
3c48d7e6d0
* include config.h in all source files
...
* declare alloca before the standard headers
* include Evil.h for the declaration of realpath in edje_cc_prefix.c
SVN revision: 43263
2009-10-25 11:19:12 +00:00
Vincent Torri
d3d9560eb1
remove debug
...
SVN revision: 42086
2009-08-29 08:42:44 +00:00
Vincent Torri
2a8d44f5a0
allow the user to chose in which directory the temporary file
...
will be created. The logic is the following:
* if the environment variable TMPDIR is set, use its value
* if it is not set, take the directory passed with the
-td option (see edje_cc help)
* otherwise on Windows use a temporary dir and on other
platform, use /tmp
SVN revision: 41978
2009-08-25 17:25:23 +00:00
Vincent Torri
052e867c7b
missing header + move fcntl.h after sys/stat.h
...
SVN revision: 39093
2009-02-19 10:29:03 +00:00
Vincent Torri
1cd236068b
* force open to allow read and write permission of the user
...
when creating or reading edj files
SVN revision: 39092
2009-02-19 10:13:28 +00:00
Vincent Torri
812f1e185f
add alloca declaration
...
SVN revision: 38977
2009-02-09 06:33:26 +00:00
Carsten Haitzler
60b4dab196
formatting.
...
SVN revision: 37425
2008-11-02 22:51:24 +00:00
Vincent Torri
0d8b00fdeb
* move standard header files to source files
...
* remove gendoc
SVN revision: 37158
2008-10-26 17:18:19 +00:00
Cedric BAIL
fa66dbf40a
Remove Evas list from Edje and use Eina instead.
...
SVN revision: 36961
2008-10-22 11:34:42 +00:00
doursse
074765d3aa
open files in binary mode, to fix problems on Windows. Fix a constness
...
SVN revision: 34931
2008-06-28 09:11:48 +00:00
Sebastian Dransfeld
4a54010498
Remove unused variable.
...
SVN revision: 34867
2008-06-19 12:47:04 +00:00
doursse
82fee3d58c
evilize edje. Link against ecore_file only when needed. PATH_MAX and not MAX_PATH. Minor other fixes.
...
SVN revision: 34761
2008-06-06 18:31:49 +00:00
Caio Marcelo de Oliveira Filho
a43c7ca786
Edje: missing va_ends.
...
SVN revision: 34169
2008-04-01 21:30:54 +00:00
Caio Marcelo de Oliveira Filho
20df0987d1
Edje: support for parsing flag-style values (and combinantions of them) in edje_cc.
...
For example:
field: FLAG_A FLAG_B FLAG_C; // at least one flag is needed
And we can assign a bit for each FLAG_*, the result would be the OR between all of them.
Refactored a bit of parse_enum to re-use code there.
SVN revision: 34168
2008-04-01 21:28:28 +00:00
doursse
31618541b7
_O_BINARY exists only on windows
...
SVN revision: 31553
2007-08-27 11:28:30 +00:00
doursse
8a6ac30215
fix edje_cc on windows, remove some trailing spaces
...
SVN revision: 31549
2007-08-27 09:32:17 +00:00
doursse
2e7692e45e
make edje binaries compile and allow the creation of the edje shared lib on windows. Remove some trailing spaces
...
SVN revision: 31517
2007-08-26 12:54:51 +00:00
Carsten Haitzler
902b6c40bb
formattign and allocs...
...
SVN revision: 30925
2007-07-21 05:06:39 +00:00
Gustavo Sverzut Barbieri
233ecdf481
Fix escaping by remembering state, allows "\\" to be used as text.
...
Thanks to rephorm for hints, dj2 and mekius for review.
SVN revision: 30769
2007-07-11 20:47:28 +00:00
Gustavo Sverzut Barbieri
0e45d25776
Avoid doing math inside strings (quoted text), so I'm now enable to have part.description.text.text starting with "(".
...
Patch originally by rephorm.
Tested and minor changes by barbieri.
SVN revision: 30768
2007-07-11 15:33:03 +00:00
Carsten Haitzler
0d99270bc9
less stack for the parser - scratchbox hates the big stack usage :)
...
SVN revision: 30364
2007-06-17 06:51:42 +00:00
Carsten Haitzler
fb4772a769
fix escape handling in quotes! :)
...
SVN revision: 24641
2006-08-13 10:37:04 +00:00
Carsten Haitzler
7554f8ee36
actually make symbol hiding work!
...
SVN revision: 19314
2005-12-27 17:17:31 +00:00
rbdpngn
7d614c0570
Use the second updated patch for the cpp problem. Originally submitted by Romu
...
on #edevelop.
SVN revision: 19224
2005-12-22 04:20:42 +00:00
Carsten Haitzler
62799c9e70
different cpp invokation attempt
...
SVN revision: 19196
2005-12-21 04:29:16 +00:00
technikolor
a908b18cfc
Don\'t assume cpp and gcc are always in /usr/bin... absolute paths removed
...
SVN revision: 18130
2005-10-30 07:42:48 +00:00
Carsten Haitzler
3ac48d63ae
and edje started supporting.... TEXTBLOCK2!!!!!
...
see e_logo.edc for an example. :)
SVN revision: 16698
2005-09-12 09:43:49 +00:00
Carsten Haitzler
c7c6f53e78
oops arg order... fix.
...
SVN revision: 12862
2005-01-10 06:15:00 +00:00
Carsten Haitzler
45bc169845
finx dir of input file, strip off file to find dir component and -I that when
...
running cpp..
SVN revision: 12861
2005-01-10 05:51:14 +00:00
tsauerbeck
deafa61660
switched to floating-point math. yell if you think this causes trouble.
...
SVN revision: 12550
2004-12-22 14:41:12 +00:00
tsauerbeck
cd2c975628
edje_cc now knows about parens, which means that "(x + y + z)" is treated as *one* token.
...
this made it possible to fix edje_cc's math code a bit.
NOTE: only fixed point arithmetic works again, floating point stuff doesn't!
See the FIXME for ideas on how to handle this.
SVN revision: 12477
2004-12-15 17:58:10 +00:00
Carsten Haitzler
7a097c0ab9
fixie fixie long time.
...
SVN revision: 12153
2004-11-09 09:31:08 +00:00
Carsten Haitzler
b6d25d31f4
edje_cc supports -Ddefine=val style stuff - via cpp and like cpp
...
SVN revision: 12015
2004-10-24 13:47:55 +00:00
xcomputerman
a1c90bfe7d
When outputting parse errors, give the correct line number - how did this whole offset thing happen anyway?
...
SVN revision: 12004
2004-10-24 06:43:45 +00:00
tsauerbeck
80cb5cd954
edje_cc is getting even more picky. arguments may not be separated by commas any more. simplified code a bit.
...
SVN revision: 11996
2004-10-24 01:10:04 +00:00
tsauerbeck
d1b4acb489
edje_cc now checks the number of arguments for each statement
...
SVN revision: 11983
2004-10-23 20:12:21 +00:00