+/*
+ * vim:ts=8:sw=3:sts=3:noexpandtab
+ */
+
#include "edje_cc.h"
static void main_help(void);
main(int argc, char **argv)
{
int i;
+ struct stat st;
+ char rpath[PATH_MAX], rpath2[PATH_MAX];
setlocale(LC_NUMERIC, "C");
main_help();
exit(-1);
}
+
+ /* check whether file_in exists */
+ if (!realpath(file_in, rpath) || stat(rpath, &st) || !S_ISREG(st.st_mode))
+ {
+ fprintf(stderr, "%s: Error: file not found: %s.\n", progname, file_in);
+ main_help();
+ exit(-1);
+ }
+
if (!file_out)
{
char *suffix;
exit(-1);
}
+ if (realpath(file_out, rpath2) && !strcmp (rpath, rpath2))
+ {
+ fprintf(stderr, "%s: Error: input file equals output file.\n", progname);
+ main_help();
+ exit(-1);
+ }
+
edje_init();
edje_file = mem_alloc(SZ(Edje_File));