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
This commit is contained in:
Carsten Haitzler 2012-07-26 08:21:56 +00:00
parent a3e8b5736d
commit d627649dc7
3 changed files with 8 additions and 9 deletions

View File

@ -87,7 +87,7 @@ main(int argc, char **argv)
/* add defines to epp so edc files can detect edje_cc version */
defines = eina_list_append(defines, mem_strdup("-DEDJE_VERSION_12=12"));
progname = argv[0];
progname = (char *)ecore_file_file_get(argv[0]);
for (i = 1; i < argc; i++)
{
if (!strcmp(argv[i], "-h"))

View File

@ -20,15 +20,15 @@ extern int _edje_cc_log_dom ;
#ifdef ERR
# undef ERR
#endif
#define ERR(...) EINA_LOG_DOM_ERR(_edje_cc_log_dom, __VA_ARGS__)
#define ERR(...) do{printf("\033[31m");printf(__VA_ARGS__);printf("\033[0m\n");} while (0)
#ifdef INF
# undef INF
#endif
#define INF(...) EINA_LOG_DOM_INFO(_edje_cc_log_dom, __VA_ARGS__)
#define INF(...) do{printf("\033[35m");printf(__VA_ARGS__);printf("\033[0m\n");} while (0)
#ifdef WRN
# undef WRN
#endif
#define WRN(...) EINA_LOG_DOM_WARN(_edje_cc_log_dom, __VA_ARGS__)
#define WRN(...) do{printf("\033[33m");printf(__VA_ARGS__);printf("\033[0m\n");} while (0)
/* types */

View File

@ -91,11 +91,11 @@ err_show_stack(void)
s = stack_id();
if (s)
{
printf("PARSE STACK:\n%s\n", s);
ERR("PARSE STACK:\n%s", s);
free(s);
}
else
printf("NO PARSE STACK\n");
ERR("NO PARSE STACK");
}
static void
@ -104,12 +104,11 @@ err_show_params(void)
Eina_List *l;
char *p;
printf("PARAMS:");
ERR("PARAMS:");
EINA_LIST_FOREACH(params, l, p)
{
printf(" %s", p);
ERR(" %s", p);
}
printf("\n");
}
static void