forked from len0rd/rockbox
Theme Editor: Applied FS#11389, switched conditional elements to use tag fields along with children, instead of holding the tag as the first child
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26751 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6c522624b3
commit
64321adf43
5 changed files with 112 additions and 131 deletions
|
@ -102,6 +102,7 @@ void skin_clear_errors()
|
|||
void skin_debug_tree(struct skin_element* root)
|
||||
{
|
||||
int i;
|
||||
char *text;
|
||||
|
||||
struct skin_element* current = root;
|
||||
|
||||
|
@ -123,18 +124,19 @@ void skin_debug_tree(struct skin_element* root)
|
|||
break;
|
||||
|
||||
case TEXT:
|
||||
printf("[ Plain text on line %d : %s ]\n", current->line,
|
||||
current->text);
|
||||
text = current->data;
|
||||
printf("[ Plain text on line %d : %s ]\n", current->line, text);
|
||||
break;
|
||||
|
||||
case COMMENT:
|
||||
text = current->data;
|
||||
printf("[ Comment on line %d: ", current->line);
|
||||
for(i = 0; i < (int)strlen(current->text); i++)
|
||||
for(i = 0; i < (int)strlen(text); i++)
|
||||
{
|
||||
if(current->text[i] == '\n')
|
||||
if(text[i] == '\n')
|
||||
printf("\\n");
|
||||
else
|
||||
printf("%c", current->text[i]);
|
||||
printf("%c", text[i]);
|
||||
}
|
||||
printf(" ]\n");
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue