Commit Graph

104 Commits

Author SHA1 Message Date
Cedric BAIL 1e25d7b701 edje: add nested part support to edc.
Blame Tasn and not the people he enslaved to get it out.
First patch by Aharon Hillel with some modification by myself.


SVN revision: 76127
2012-09-04 11:27:43 +00:00
Cedric BAIL 8ad4e0c02e edje: report type of file when listing files used by an edc.
SVN revision: 76095
2012-09-04 02:13:05 +00:00
Gustavo Sverzut Barbieri f1e077844e fix edje error reporting for once and for all.
edje error was a mess. First someone (maybe myself) added eina log,
then people changed it to be a mix with printf()... then they replaced
eina_log with printf() + colors so it would be less verbose.

It's fixed now! Using eina log infrastructure.

If all that is wanted is specific messages for edje_cc domain, do it
with a specific log print function (eina_log_print_cb_set()). I made
it produce messages in the format:

    <levelcolor><progname>: <levelprefix><message>

Where:
 - levelcolor is defined by eina_log (I hacked the win32 version,
   since no public api to resolve level to color).
 - levelprefix is "Error. " or "Warning. " to cope with traditional
   output.

If it does not look as you wanted, let me know before stuffing some
printf() again.

Bonus point: reduced 2 global variables (progname and verbose),
removed lots of code.



SVN revision: 74701
2012-07-31 22:42:03 +00:00
Carsten Haitzler d627649dc7 edje_cc shouldnt be using eina-log for almost all its err/wrn/inf
stuff as this is actual user output and done:
  file.c:242 error in blah.edc:232
is just confusing as all heck.



SVN revision: 74424
2012-07-26 08:21:56 +00:00
Carsten Haitzler efca59d04f optimize edje_cc - now betwene 3.5 x and 4x as fast. new options
(-fastcomp and -fastdecomp) -fastcomp makes for faster decompressing
AND faster compressing of edj files, -fastdecomp is a bit slower on
compression but also as fast as -fastcomp in decompression. note that
edje files built with these optiosn will not work on older edje
installations, thus they are options.



SVN revision: 71112
2012-05-15 12:29:22 +00:00
Cedric BAIL dd9c491c5b edje: add edje_watch.
edje_watch call edje_cc and monitor all the source file (edc, font
image, sound). If any of them change, it call edje_cc, update its
watching list and so on. edje_watch as the same command line as
edje_cc.
   Still a little bit rought, but it's the beginning of an interesting
experiment.


SVN revision: 70872
2012-05-08 10:35:57 +00:00
Tom Hacohen 2eaaa462da Edje cc: Remove unused parameters cpp_token_line/file.
SVN revision: 67323
2012-01-19 08:17:07 +00:00
Tom Hacohen 43a9bc036b Edje: Fixed a couple of compilation warnings.
SVN revision: 62566
2011-08-18 11:41:04 +00:00
Boris Faure c76a60b0a5 edje/epp: cpp line control command is #line
SVN revision: 62381
2011-08-12 12:39:17 +00:00
Carsten Haitzler 51b25f8c52 use new eina prefix finder.
SVN revision: 58850
2011-04-24 07:36:15 +00:00
Carsten Haitzler 0b0d51c5cf add text effect shadow direction support.
SVN revision: 58548
2011-04-11 12:08:03 +00:00
Carsten Haitzler a3d58eaddf provide better parser output on error.
SVN revision: 58508
2011-04-09 02:35:01 +00:00
Carsten Haitzler 9d89abb915 edje_cc now only will use epp. makes for consistent output on all
platforms since we ship our own cpp.. err.. epp. :)



SVN revision: 58315
2011-04-04 08:30:02 +00:00
Vincent Torri e0ff04b83e Edje: Fix epp binary detection on Windows
SVN revision: 57961
2011-03-22 07:30:57 +00:00
Carsten Haitzler 40df8b5428 remove old code not used anymore
SVN revision: 57928
2011-03-21 03:00:33 +00:00
Carsten Haitzler 7f35e847f5 use proper prefix finding for epp.
SVN revision: 57927
2011-03-21 02:47:23 +00:00
Cedric BAIL 0f3157854f edje: let's release the hand brake and run faster !
SVN revision: 57411
2011-02-28 13:25:46 +00:00
Mike Blumenkrantz d60c6a85da Subject: Re: [E-devel] E SVN: discomfitor trunk/edje/src/bin
Date: Wed, 23 Feb 2011 20:25:38 +0100 (CET)

On Wed, 23 Feb 2011, Mike Blumenkrantz wrote:
> vtorri! help!!!! :(  

try the attached patch

Vincent


SVN revision: 57284
2011-02-23 20:30:14 +00:00
Mike Blumenkrantz 5677e35855 whoops
SVN revision: 57272
2011-02-23 19:07:13 +00:00
Mike Blumenkrantz c7d4e15087 edje now uses (and installs if not previously found) epp as its default C preprocessor, providing consistent output across all platforms and allowing edje_cc to run on windows (vtorri!!)
fallbacks exist to use old behavior if epp fails.


SVN revision: 57210
2011-02-21 08:04:44 +00:00
Carsten Haitzler 2ba6051649 more return fixes. clang reports.
SVN revision: 56173
2011-01-16 04:13:37 +00:00
Carsten Haitzler c3db629e55 more cases of default return etc.
SVN revision: 56170
2011-01-16 04:08:49 +00:00
Carsten Haitzler fa77855b53 more clang warnings-- (double returns as default case always returns
anyway - make it fall thru to default return)



SVN revision: 56169
2011-01-16 04:08:09 +00:00
Mike Blumenkrantz 9e6ff792cd revert last, must have been high
SVN revision: 56139
2011-01-15 19:47:02 +00:00
Mike Blumenkrantz 767b0c52ad more correctly shut gcc warnings up
SVN revision: 56138
2011-01-15 19:46:13 +00:00
Cedric BAIL d5d953a533 * edje: remove c++ comment also.
SVN revision: 55209
2010-12-03 17:55:02 +00:00
Cedric BAIL 561114732b * edje: improve portability and simplify code.
SVN revision: 55198
2010-12-03 16:41:38 +00:00
Carsten Haitzler ead7329b42 warning--
(shuddup gcc)



SVN revision: 52433
2010-09-19 00:33:45 +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 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