From de02e840a6dd619e221a750b0b2a63d157f05114 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 13 Feb 2007 23:15:46 +0000 Subject: skip_whitespace() -> Common::ltrim() svn-id: r25573 --- engines/parallaction/parser.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'engines/parallaction') diff --git a/engines/parallaction/parser.cpp b/engines/parallaction/parser.cpp index eb943efe41..53c7d8f0b4 100644 --- a/engines/parallaction/parser.cpp +++ b/engines/parallaction/parser.cpp @@ -96,7 +96,7 @@ uint16 parseFillBuffers() { puts("non ho letto "); exit(0); } - v4 = skip_whitespace(v4); + v4 = Common::ltrim(v4); } while (strlen(v4) == 0 || v4[0] == '#'); _si = 0; @@ -111,7 +111,7 @@ uint16 parseFillBuffers() { } - v4 = skip_whitespace(v4); + v4 = Common::ltrim(v4); _si++; } @@ -139,13 +139,4 @@ char *parseNextToken(char *s, char *tok, uint16 count, const char *brk) { } -char *skip_whitespace(char *s) { - - while (*s == 0x20 || *s == 0xA || *s == 0x9) s++; - - return s; -} - - - } // namespace Parallaction -- cgit v1.2.3