aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorEugene Sandulenko2007-02-13 23:15:46 +0000
committerEugene Sandulenko2007-02-13 23:15:46 +0000
commitde02e840a6dd619e221a750b0b2a63d157f05114 (patch)
tree509c03471d906ae6ec7222e73b72402fc5ae1546 /engines/parallaction
parent2e567f1cc9a777e88db35012f8d21db1ca6b53a6 (diff)
downloadscummvm-rg350-de02e840a6dd619e221a750b0b2a63d157f05114.tar.gz
scummvm-rg350-de02e840a6dd619e221a750b0b2a63d157f05114.tar.bz2
scummvm-rg350-de02e840a6dd619e221a750b0b2a63d157f05114.zip
skip_whitespace() -> Common::ltrim()
svn-id: r25573
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/parser.cpp13
1 files changed, 2 insertions, 11 deletions
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