projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca123e
)
parse: skip whitespace
author
David Schleef
<ds@schleef.org>
Sun, 2 Oct 2011 20:11:39 +0000
(13:11 -0700)
committer
David Schleef
<ds@schleef.org>
Sun, 2 Oct 2011 23:24:58 +0000
(16:24 -0700)
orc/orcparse.c
patch
|
blob
|
history
diff --git
a/orc/orcparse.c
b/orc/orcparse.c
index
d655839
..
00056c3
100644
(file)
--- 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;