projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99b7af6
)
edje: detect when we try to inherit from ourself.
author
Cedric BAIL
<cedric.bail@free.fr>
Mon, 23 Jan 2012 15:45:12 +0000
(15:45 +0000)
committer
Cedric BAIL
<cedric.bail@free.fr>
Mon, 23 Jan 2012 15:45:12 +0000
(15:45 +0000)
SVN revision: 67472
legacy/edje/src/bin/edje_cc_handlers.c
patch
|
blob
|
history
diff --git
a/legacy/edje/src/bin/edje_cc_handlers.c
b/legacy/edje/src/bin/edje_cc_handlers.c
index
f74fa12
..
5244f6a
100644
(file)
--- a/
legacy/edje/src/bin/edje_cc_handlers.c
+++ b/
legacy/edje/src/bin/edje_cc_handlers.c
@@
-2242,6
+2242,14
@@
st_collections_group_inherit(void)
progname, file_in, line - 1, parent_name);
exit(-1);
}
+ if (pc2 == pc)
+ {
+ ERR("%s: Error. parse error %s:%i. You are trying to inherit '%s' from itself. That's not possible."
+ "If there is another group of the same name, you want to inherit from that group and have the"
+ "same name as that group, there is a trick ! Just put the inherit before the directive that set"
+ "the name !", progname, file_in, line - 1, parent_name);
+ exit(-1);
+ }
if (pc2->data)
{