forked from enlightenment/efl
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:
parent
a3e8b5736d
commit
d627649dc7
|
@ -87,7 +87,7 @@ main(int argc, char **argv)
|
||||||
/* add defines to epp so edc files can detect edje_cc version */
|
/* add defines to epp so edc files can detect edje_cc version */
|
||||||
defines = eina_list_append(defines, mem_strdup("-DEDJE_VERSION_12=12"));
|
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++)
|
for (i = 1; i < argc; i++)
|
||||||
{
|
{
|
||||||
if (!strcmp(argv[i], "-h"))
|
if (!strcmp(argv[i], "-h"))
|
||||||
|
|
|
@ -20,15 +20,15 @@ extern int _edje_cc_log_dom ;
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#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
|
#ifdef INF
|
||||||
# undef INF
|
# undef INF
|
||||||
#endif
|
#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
|
#ifdef WRN
|
||||||
# undef WRN
|
# undef WRN
|
||||||
#endif
|
#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 */
|
/* types */
|
||||||
|
|
|
@ -91,11 +91,11 @@ err_show_stack(void)
|
||||||
s = stack_id();
|
s = stack_id();
|
||||||
if (s)
|
if (s)
|
||||||
{
|
{
|
||||||
printf("PARSE STACK:\n%s\n", s);
|
ERR("PARSE STACK:\n%s", s);
|
||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf("NO PARSE STACK\n");
|
ERR("NO PARSE STACK");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -104,12 +104,11 @@ err_show_params(void)
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
printf("PARAMS:");
|
ERR("PARAMS:");
|
||||||
EINA_LIST_FOREACH(params, l, p)
|
EINA_LIST_FOREACH(params, l, p)
|
||||||
{
|
{
|
||||||
printf(" %s", p);
|
ERR(" %s", p);
|
||||||
}
|
}
|
||||||
printf("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue