From: Mike Blumenkrantz Date: Mon, 24 Mar 2014 19:18:28 +0000 (-0400) Subject: edje_cc now fails for multiple data entries with the same key, FIXME-- X-Git-Tag: v1.10.0+tech+preview~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15df46b707c3fb6a9d55b641add70ae79e6ba9db;p=platform%2Fupstream%2Fefl.git edje_cc now fails for multiple data entries with the same key, FIXME-- --- 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) if (!edje_file->data) edje_file->data = eina_hash_string_small_new(free); + else + { + if (eina_hash_find(edje_file->data, key)) + { + ERR("parse error %s:%i. There is already a data.item of the name %s", + file_in, line - 1, key); + exit(-1); + } + } - /* FIXME: check if data already exist */ eina_hash_direct_add(edje_file->data, key, es); }