summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-03-24 15:18:28 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-03-24 15:18:28 -0400
commit15df46b707c3fb6a9d55b641add70ae79e6ba9db (patch)
tree81f74d69c5de41463819db0eeabd7ab68de03368 /src
parentc8dc78cd006084d46efb9bfb4cb0cf3bcc35099a (diff)
edje_cc now fails for multiple data entries with the same key, FIXME--
Diffstat (limited to 'src')
-rw-r--r--src/bin/edje/edje_cc_handlers.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index ad0879a..39f2605 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -1737,8 +1737,16 @@ st_data_item(void)
1737 1737
1738 if (!edje_file->data) 1738 if (!edje_file->data)
1739 edje_file->data = eina_hash_string_small_new(free); 1739 edje_file->data = eina_hash_string_small_new(free);
1740 else
1741 {
1742 if (eina_hash_find(edje_file->data, key))
1743 {
1744 ERR("parse error %s:%i. There is already a data.item of the name %s",
1745 file_in, line - 1, key);
1746 exit(-1);
1747 }
1748 }
1740 1749
1741 /* FIXME: check if data already exist */
1742 eina_hash_direct_add(edje_file->data, key, es); 1750 eina_hash_direct_add(edje_file->data, key, es);
1743} 1751}
1744 1752