stuff as this is actual user output and done:
file.c:242 error in blah.edc:232
is just confusing as all heck.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@74424
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
/* 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"))
#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 */
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
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