diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-07-04 01:39:57 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-04 01:39:57 +0000 |
| commit | 32ff4e93bdc15a21faf23e46bd2e0eb659bf8f31 (patch) | |
| tree | 3e24bc8a53032bece6aa428c71796ca26ee27379 /lib/skin_parser/skin_parser.c | |
| parent | d4e7ab7a93a268a9fbb1255b7ca3a39a09c090e2 (diff) | |
| download | rockbox-32ff4e93bdc15a21faf23e46bd2e0eb659bf8f31.zip rockbox-32ff4e93bdc15a21faf23e46bd2e0eb659bf8f31.tar.gz rockbox-32ff4e93bdc15a21faf23e46bd2e0eb659bf8f31.tar.bz2 rockbox-32ff4e93bdc15a21faf23e46bd2e0eb659bf8f31.tar.xz | |
Theme Editor: Implemented a flags column in the tag table, removed the \n flag at the end of the param list and replaced it with a NOBREAK flag to prevent the renderer from inserting a line break at the end of the line. Modified the theme editor's renderer to accomodate this flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27268 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
| -rw-r--r-- | lib/skin_parser/skin_parser.c | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index 3e7f96a..7a30e93 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c @@ -459,21 +459,9 @@ static int skin_parse_tag(struct skin_element* element, char** document) return 1; } - /* Eating a newline if necessary */ - if(tag_args[0] == '\n') - { - while (*cursor && *cursor != '\n') - cursor++; - if (*cursor) - cursor++; - skin_line++; - *document = cursor; - return 1; - } /* Checking the number of arguments and allocating args */ - if(*cursor != ARGLISTOPENSYM && tag_args[0] != '|' - && tag_args[0] != '\n') + if(*cursor != ARGLISTOPENSYM && tag_args[0] != '|') { skin_error(ARGLIST_EXPECTED); return 0; @@ -521,7 +509,7 @@ static int skin_parse_tag(struct skin_element* element, char** document) for(i = 0; i < num_args; i++) { /* Making sure we haven't run out of arguments */ - if(*tag_args == '\0' || *tag_args == '\n') + if(*tag_args == '\0') { skin_error(TOO_MANY_ARGS); return 0; @@ -620,27 +608,11 @@ static int skin_parse_tag(struct skin_element* element, char** document) } /* Checking for a premature end */ - if(*tag_args != '\0' && *tag_args != '\n' && !optional) + if(*tag_args != '\0' && !optional) { skin_error(INSUFFICIENT_ARGS); return 0; } - - if(*tag_args == '\n') - { - while (*cursor && *cursor != '\n') - cursor++; - if (*cursor) - cursor++; - skin_line++; - } - - if((strcmp(tag->name, "Vf") == 0 || strcmp(tag->name, "Vb") == 0) - && *cursor == '\n' && skin_line == viewport_line) - { - cursor++; - skin_line++; - } *document = cursor; |