diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-05 11:28:35 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-05 11:28:35 +0000 |
commit | 145571d9b5c2b6b1028fbb95388f933a3675ebfa (patch) | |
tree | 78ca776063cc998b20dd4e6b1a3f8746eee5c50b /lib/skin_parser/skin_parser.c | |
parent | a0dd4cd057a3e701bf25fc8ac19d0d025f64f361 (diff) | |
download | rockbox-145571d9b5c2b6b1028fbb95388f933a3675ebfa.tar.gz rockbox-145571d9b5c2b6b1028fbb95388f933a3675ebfa.zip |
Add a T type to the tag table which allows parameters to be a single tag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27716 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r-- | lib/skin_parser/skin_parser.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index f92a52774d..fba074f00c 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c | |||
@@ -673,6 +673,17 @@ static int skin_parse_tag(struct skin_element* element, const char** document) | |||
673 | if(!element->params[i].data.code) | 673 | if(!element->params[i].data.code) |
674 | return 0; | 674 | return 0; |
675 | } | 675 | } |
676 | else if (tolower(*tag_args) == 't') | ||
677 | { | ||
678 | struct skin_element* child = skin_alloc_element(); | ||
679 | child->type = TAG; | ||
680 | if (!skin_parse_tag(child, &cursor)) | ||
681 | return 0; | ||
682 | child->next = NULL; | ||
683 | element->params[i].type = CODE; | ||
684 | element->params[i].data.code = child; | ||
685 | } | ||
686 | |||
676 | 687 | ||
677 | skip_whitespace(&cursor); | 688 | skip_whitespace(&cursor); |
678 | 689 | ||