version 1.18, 2015/01/26 13:03:48 |
version 1.19, 2015/01/28 15:03:45 |
Line 120 arg(struct tbl_node *tbl, int ln, const char *p, int * |
|
Line 120 arg(struct tbl_node *tbl, int ln, const char *p, int * |
|
* and some options are followed by arguments. |
* and some options are followed by arguments. |
*/ |
*/ |
void |
void |
tbl_option(struct tbl_node *tbl, int ln, const char *p) |
tbl_option(struct tbl_node *tbl, int ln, const char *p, int *offs) |
{ |
{ |
int i, pos, len; |
int i, pos, len; |
|
|
pos = 0; |
pos = *offs; |
for (;;) { |
for (;;) { |
while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') |
while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') |
pos++; |
pos++; |
|
|
if (p[pos] == ';') |
if (p[pos] == ';') { |
|
*offs = pos + 1; |
return; |
return; |
|
} |
|
|
/* Parse one option name. */ |
/* Parse one option name. */ |
|
|