From 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 29 Jul 2010 12:37:48 +0000 Subject: 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 --- lib/skin_parser/skin_scan.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/skin_parser/skin_scan.c') 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) (*document)++; } -void skip_whitespace(char** document) -{ - while(**document == ' ' || **document == '\t') - (*document)++; -} - void skip_arglist(char** document) { if(**document == ARGLISTOPENSYM) @@ -132,6 +126,8 @@ char* scan_string(char** document) /* Copying the string */ cursor = *document; buffer = skin_alloc_string(length); + if (!buffer) + return NULL; buffer[length] = '\0'; for(i = 0; i < length; i++) { -- cgit v1.2.3