1
0
Fork 0
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:
Robert Bieber 2010-06-10 21:02:44 +00:00
parent 6c522624b3
commit 64321adf43
5 changed files with 112 additions and 131 deletions

View file

@ -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;