char *file_out = NULL;
char *watchfile = NULL;
-static char *progname = NULL;
+static const char *progname = NULL;
int no_lossy = 0;
int no_comp = 0;
EINA_LOG_ERR("Enable to create a log domain.");
exit(-1);
}
- progname = (char *)ecore_file_file_get(argv[0]);
+ progname = ecore_file_file_get(argv[0]);
eina_log_print_cb_set(_edje_cc_log_cb, NULL);
tmp_dir = getenv("TMPDIR");
if (!file_in)
{
- fprintf(stderr, "%s: Error: no input file specified.\n", progname);
+ ERR("no input file specified.");
main_help();
exit(-1);
}
if (stat(file_in, &st) || !S_ISREG(st.st_mode))
#endif
{
- fprintf(stderr, "%s: Error: file not found: %s.\n", progname, file_in);
+ ERR("file not found: %s.", file_in);
main_help();
exit(-1);
}
}
if (!file_out)
{
- fprintf(stderr, "%s: Error: no output file specified.\n", progname);
+ ERR("no output file specified.");
main_help();
exit(-1);
}
if (!strcmp (file_in, file_out))
#endif
{
- fprintf(stderr, "%s: Error: input file equals output file.\n", progname);
+ ERR("input file equals output file.");
main_help();
exit(-1);
}
#include "edje_decc.h"
int _edje_cc_log_dom = -1;
-static char *progname = NULL;
+static const char *progname = NULL;
char *file_in = NULL;
char *file_out = NULL;
int compress_mode = EET_COMPRESSION_DEFAULT;
eina_shutdown();
exit(-1);
}
- progname = (char *)ecore_file_file_get(argv[0]);
+ progname = ecore_file_file_get(argv[0]);
eina_log_print_cb_set(_edje_cc_log_cb, NULL);
eina_log_domain_level_set("edje_decc", EINA_LOG_LEVEL_INFO);
}
if (!file_in)
{
- ERR("%s: Error: no input file specified.", progname);
+ ERR("no input file specified.");
main_help();
exit(-1);
}