forked from len0rd/rockbox
Theme Editor: Began working on open document functionality (still incomplete), fixed a nested conditional parsing bug in the parser, and fixed segfault-on-codegen-from-empty-tree bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26609 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5619b4f6cf
commit
f3491e97d0
6 changed files with 35 additions and 11 deletions
|
|
@ -685,9 +685,15 @@ int skin_parse_conditional(struct skin_element* element, char** document)
|
|||
while(nested)
|
||||
{
|
||||
if(*cursor == ENUMLISTOPENSYM)
|
||||
{
|
||||
nested++;
|
||||
if(*cursor == ENUMLISTCLOSESYM)
|
||||
break;
|
||||
}
|
||||
else if(*cursor == ENUMLISTCLOSESYM)
|
||||
{
|
||||
nested--;
|
||||
break;
|
||||
}
|
||||
cursor++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue