aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-02 12:38:02 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-02 12:43:26 +0100
commit4dfaf5729ee5da36b240665674201509ac32b1f3 (patch)
treebb8b345370eb9db4d27bf78e844bc7a6a4204851 /src/bin/elementary
parentelm_toolbar: fix prio.visible (diff)
downloadefl-4dfaf5729ee5da36b240665674201509ac32b1f3.tar.gz
codegen: ensure we include the filename and not the path
this mirrors the behaviour of eolian & eolian_cxx. Usally a generator just generates the files side by side, the directory then needs to be included anyways. thus adding the include with another subdirectory is unusal. Differential Revision: https://phab.enlightenment.org/D7235
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/elementary_codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/elementary/elementary_codegen.c b/src/bin/elementary/elementary_codegen.c
index e9cc685b66..2f8324f448 100644
--- a/src/bin/elementary/elementary_codegen.c
+++ b/src/bin/elementary/elementary_codegen.c
@@ -3,6 +3,7 @@
#endif
#include <Ecore.h>
+#include <Ecore_File.h>
#include <Ecore_Evas.h>
#include <Ecore_Getopt.h>
#include <Edje.h>
@@ -344,7 +345,7 @@ _headers_write(const char *filename)
free(str);
- snprintf(buf, sizeof(buf), C_HEADER, filename);
+ snprintf(buf, sizeof(buf), C_HEADER, ecore_file_file_get(filename));
if (fwrite(buf, strlen(buf), 1, source_fd) != 1)
return EINA_FALSE;