fix edje error reporting for once and for all.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 31 Jul 2012 22:42:03 +0000 (22:42 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 31 Jul 2012 22:42:03 +0000 (22:42 +0000)
commit91ebffedfa82e750fbfbcdfcf86b8e3b7cf2c612
treebe0e4f3d99373b33fb2ba687e197f7826bde2344
parentde931c9f2aef5ae095500098d7a924e45e015ff4
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.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@74701 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
12 files changed:
src/bin/edje_cc.c
src/bin/edje_cc.h
src/bin/edje_cc_handlers.c
src/bin/edje_cc_mem.c
src/bin/edje_cc_out.c
src/bin/edje_cc_parse.c
src/bin/edje_cc_sources.c
src/bin/edje_convert.c
src/bin/edje_convert_main.c
src/bin/edje_decc.c
src/bin/edje_decc.h
src/bin/edje_multisense_convert.c