From: David Schleef Date: Sun, 2 Oct 2011 20:11:39 +0000 (-0700) Subject: parse: skip whitespace X-Git-Tag: orc-0.4.16~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f088b225d0f1c17f3fb7daff9af52803db52f65a;p=platform%2Fupstream%2Forc.git parse: skip whitespace --- diff --git a/orc/orcparse.c b/orc/orcparse.c index d655839..00056c3 100644 --- a/orc/orcparse.c +++ b/orc/orcparse.c @@ -99,7 +99,7 @@ orc_parse_full (const char *code, OrcProgram ***programs, char **log) n_tokens = 0; while (p < end) { - if (p[0] == ' ' || p[0] == '\t' || p[0] == ',') p++; + while (p[0] != 0 && (p[0] == ' ' || p[0] == '\t')) p++; if (p[0] == 0 || p[0] == '#') break; token[n_tokens] = p;