parse: skip whitespace
authorDavid Schleef <ds@schleef.org>
Sun, 2 Oct 2011 20:11:39 +0000 (13:11 -0700)
committerDavid Schleef <ds@schleef.org>
Sun, 2 Oct 2011 23:24:58 +0000 (16:24 -0700)
orc/orcparse.c

index d655839..00056c3 100644 (file)
@@ -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;