(svn r4490) - Feature: The integer-list parser now accepts a space character as an item seperator next to the comma.
This commit is contained in:
@@ -406,7 +406,7 @@ static int parse_intlist(const char *p, int *items, int maxitems)
|
|||||||
p = end;
|
p = end;
|
||||||
items[n++] = v;
|
items[n++] = v;
|
||||||
if (*p == '\0') break;
|
if (*p == '\0') break;
|
||||||
if (*p != ',') return -1;
|
if (*p != ',' && *p != ' ') return -1;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user