summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-10-08 13:54:55 +0000
committerNils Wallménius <nils@rockbox.org>2011-10-08 13:54:55 +0000
commite52600eb67b42dad007aaff689453ac76fc0847b (patch)
tree6d038205bb0a927aac1a590e3f31256011984314 /lib
parent9d9de73693d1fb6527f138fea497b2584b9f6b49 (diff)
downloadrockbox-e52600eb67b42dad007aaff689453ac76fc0847b.tar.gz
rockbox-e52600eb67b42dad007aaff689453ac76fc0847b.tar.bz2
rockbox-e52600eb67b42dad007aaff689453ac76fc0847b.zip
de-tabify
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30734 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/skin_parser.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c
index 7408252949..2612cc8906 100644
--- a/lib/skin_parser/skin_parser.c
+++ b/lib/skin_parser/skin_parser.c
@@ -992,48 +992,48 @@ static int skin_parse_conditional(struct skin_element* element, const char** doc
if (children == 0)
{
- const char* emptyline= "";
- children = 1;
- element->children = skin_alloc_children(children);
- if (!element->children)
- return 0;
- element->children_count = children;
- element->children[0] = skin_parse_code_as_arg(&emptyline);
- }
- else
- {
- element->children = skin_alloc_children(children);
- if (!element->children)
- return 0;
- element->children_count = children;
-
- for(i = 0; i < children; i++)
- {
- element->children[i] = skin_parse_code_as_arg(&cursor);
- if (element->children[i] == NULL)
- return 0;
- skip_whitespace(&cursor);
+ const char* emptyline= "";
+ children = 1;
+ element->children = skin_alloc_children(children);
+ if (!element->children)
+ return 0;
+ element->children_count = children;
+ element->children[0] = skin_parse_code_as_arg(&emptyline);
+ }
+ else
+ {
+ element->children = skin_alloc_children(children);
+ if (!element->children)
+ return 0;
+ element->children_count = children;
+
+ for(i = 0; i < children; i++)
+ {
+ element->children[i] = skin_parse_code_as_arg(&cursor);
+ if (element->children[i] == NULL)
+ return 0;
+ skip_whitespace(&cursor);
#ifdef ROCKBOX
- if ((element->tag->flags&FEATURE_TAG) && feature_available)
- cursor = conditional_end;
+ if ((element->tag->flags&FEATURE_TAG) && feature_available)
+ cursor = conditional_end;
#endif
- if(i < children - 1 && *cursor != ENUMLISTSEPARATESYM)
- {
- skin_error(SEPARATOR_EXPECTED, cursor);
- return 0;
- }
- else if(i == children - 1 && *cursor != ENUMLISTCLOSESYM)
- {
- skin_error(CLOSE_EXPECTED, cursor);
- return 0;
- }
- else
- {
- cursor++;
- }
- }
- }
+ if(i < children - 1 && *cursor != ENUMLISTSEPARATESYM)
+ {
+ skin_error(SEPARATOR_EXPECTED, cursor);
+ return 0;
+ }
+ else if(i == children - 1 && *cursor != ENUMLISTCLOSESYM)
+ {
+ skin_error(CLOSE_EXPECTED, cursor);
+ return 0;
+ }
+ else
+ {
+ cursor++;
+ }
+ }
+ }
*document = cursor;
return 1;