summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2015-08-26 13:30:15 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2015-08-26 13:43:38 +0900
commitb9c24fa951c852d267702e318c78b7dcbdd3c3e0 (patch)
tree712b3dffab03fd13a111b6c60062f2d25acc1024
parent97b214b0339fbc18398811105ac9619afa5b89fb (diff)
edje_cc_out: Fix edje_cc compile error with script on Windows.
On Windows, PATH_MAX is 260 and PATH_MAX is used as string buffer size in edje_cc compile. This causes edje_cc compile error when the edc file contains "script" keyword and the length of file paths is relatively long. To resolve this problem, change the string buffer size in edje_cc compile. @fix
-rwxr-xr-xsrc/bin/edje/edje_cc_out.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index f96e2f3223..6a85f666b0 100755
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -535,7 +535,7 @@ data_thread_head(void *data, Ecore_Thread *thread EINA_UNUSED)
535{ 535{
536 Head_Write *hw = data; 536 Head_Write *hw = data;
537 int bytes = 0; 537 int bytes = 0;
538 char buf[PATH_MAX]; 538 char buf[EINA_PATH_MAX];
539 539
540 if (edje_file) 540 if (edje_file)
541 { 541 {
@@ -628,8 +628,8 @@ data_thread_fonts(void *data, Ecore_Thread *thread EINA_UNUSED)
628 Eina_File *f = NULL; 628 Eina_File *f = NULL;
629 void *m = NULL; 629 void *m = NULL;
630 int bytes = 0; 630 int bytes = 0;
631 char buf[PATH_MAX]; 631 char buf[EINA_PATH_MAX];
632 char buf2[PATH_MAX]; 632 char buf2[EINA_PATH_MAX];
633 633
634 f = eina_file_open(fc->fn->file, 0); 634 f = eina_file_open(fc->fn->file, 0);
635 if (f) 635 if (f)
@@ -821,7 +821,7 @@ static void
821data_thread_image(void *data, Ecore_Thread *thread EINA_UNUSED) 821data_thread_image(void *data, Ecore_Thread *thread EINA_UNUSED)
822{ 822{
823 Image_Write *iw = data; 823 Image_Write *iw = data;
824 char buf[PATH_MAX], buf2[PATH_MAX]; 824 char buf[PATH_MAX], buf2[EINA_PATH_MAX];
825 unsigned int *start, *end; 825 unsigned int *start, *end;
826 Eina_Bool opaque = EINA_TRUE; 826 Eina_Bool opaque = EINA_TRUE;
827 int bytes = 0; 827 int bytes = 0;
@@ -1199,7 +1199,7 @@ static void
1199data_thread_mo(void *data, Ecore_Thread *thread EINA_UNUSED) 1199data_thread_mo(void *data, Ecore_Thread *thread EINA_UNUSED)
1200{ 1200{
1201 Mo_Write *mw = data; 1201 Mo_Write *mw = data;
1202 char buf[PATH_MAX]; 1202 char buf[EINA_PATH_MAX];
1203 Eina_List *ll; 1203 Eina_List *ll;
1204 1204
1205 char *dir_path = NULL; 1205 char *dir_path = NULL;
@@ -1309,7 +1309,7 @@ data_write_mo(Eet_File *ef, int *mo_num)
1309 int i; 1309 int i;
1310 char *po_entry; 1310 char *po_entry;
1311 char *sub_str; 1311 char *sub_str;
1312 char buf[PATH_MAX]; 1312 char buf[EINA_PATH_MAX];
1313 Eina_List *ll; 1313 Eina_List *ll;
1314 char *dir_path = NULL; 1314 char *dir_path = NULL;
1315 char mo_path[PATH_MAX]; 1315 char mo_path[PATH_MAX];
@@ -1776,7 +1776,7 @@ data_write_scripts(Eet_File *ef)
1776 { 1776 {
1777 Code *cd = eina_list_data_get(l); 1777 Code *cd = eina_list_data_get(l);
1778 Script_Write *sc; 1778 Script_Write *sc;
1779 char buf[PATH_MAX]; 1779 char buf[EINA_PATH_MAX];
1780 1780
1781 if (cd->is_lua) 1781 if (cd->is_lua)
1782 continue; 1782 continue;