summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_scan.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-07-29 12:37:48 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-07-29 12:37:48 +0000
commit2d31d77a8ba231cb03ec35863c4c4ce2024f6509 (patch)
treeb85ca1bede3e83695619064ee9a323f0a8da1865 /lib/skin_parser/skin_scan.c
parente436483b66a931fef6436e9cd3e69eb2b3ff1f7b (diff)
downloadrockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.tar.gz
rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.zip
FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser/skin_scan.c')
-rw-r--r--lib/skin_parser/skin_scan.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/skin_parser/skin_scan.c b/lib/skin_parser/skin_scan.c
index 6b5c189b9f..d18f2224b3 100644
--- a/lib/skin_parser/skin_scan.c
+++ b/lib/skin_parser/skin_scan.c
@@ -40,12 +40,6 @@ void skip_comment(char** document)
40 (*document)++; 40 (*document)++;
41} 41}
42 42
43void skip_whitespace(char** document)
44{
45 while(**document == ' ' || **document == '\t')
46 (*document)++;
47}
48
49void skip_arglist(char** document) 43void skip_arglist(char** document)
50{ 44{
51 if(**document == ARGLISTOPENSYM) 45 if(**document == ARGLISTOPENSYM)
@@ -132,6 +126,8 @@ char* scan_string(char** document)
132 /* Copying the string */ 126 /* Copying the string */
133 cursor = *document; 127 cursor = *document;
134 buffer = skin_alloc_string(length); 128 buffer = skin_alloc_string(length);
129 if (!buffer)
130 return NULL;
135 buffer[length] = '\0'; 131 buffer[length] = '\0';
136 for(i = 0; i < length; i++) 132 for(i = 0; i < length; i++)
137 { 133 {