version 1.23, 2018/12/13 02:06:07 |
version 1.24, 2018/12/14 05:18:03 |
Line 81 arg(struct tbl_node *tbl, int ln, const char *p, int * |
|
Line 81 arg(struct tbl_node *tbl, int ln, const char *p, int * |
|
|
|
switch (key) { |
switch (key) { |
case KEY_DELIM: |
case KEY_DELIM: |
mandoc_vmsg(MANDOCERR_TBLOPT_EQN, tbl->parse, |
mandoc_msg(MANDOCERR_TBLOPT_EQN, |
ln, *pos, "%.*s", len, p + *pos); |
ln, *pos, "%.*s", len, p + *pos); |
want = 2; |
want = 2; |
break; |
break; |
Line 103 arg(struct tbl_node *tbl, int ln, const char *p, int * |
|
Line 103 arg(struct tbl_node *tbl, int ln, const char *p, int * |
|
} |
} |
|
|
if (len == 0) |
if (len == 0) |
mandoc_msg(MANDOCERR_TBLOPT_NOARG, |
mandoc_msg(MANDOCERR_TBLOPT_NOARG, ln, *pos, |
tbl->parse, ln, *pos, keys[key].name); |
"%s", keys[key].name); |
else if (want && len != want) |
else if (want && len != want) |
mandoc_vmsg(MANDOCERR_TBLOPT_ARGSZ, |
mandoc_msg(MANDOCERR_TBLOPT_ARGSZ, ln, *pos, |
tbl->parse, ln, *pos, "%s want %d have %d", |
"%s want %d have %d", keys[key].name, want, len); |
keys[key].name, want, len); |
|
|
|
*pos += len; |
*pos += len; |
if (p[*pos] == ')') |
if (p[*pos] == ')') |
Line 142 tbl_option(struct tbl_node *tbl, int ln, const char *p |
|
Line 141 tbl_option(struct tbl_node *tbl, int ln, const char *p |
|
len++; |
len++; |
|
|
if (len == 0) { |
if (len == 0) { |
mandoc_vmsg(MANDOCERR_TBLOPT_ALPHA, |
mandoc_msg(MANDOCERR_TBLOPT_ALPHA, |
tbl->parse, ln, pos, "%c", p[pos]); |
ln, pos, "%c", p[pos]); |
pos++; |
pos++; |
continue; |
continue; |
} |
} |
Line 157 tbl_option(struct tbl_node *tbl, int ln, const char *p |
|
Line 156 tbl_option(struct tbl_node *tbl, int ln, const char *p |
|
i++; |
i++; |
|
|
if (i == KEY_MAXKEYS) { |
if (i == KEY_MAXKEYS) { |
mandoc_vmsg(MANDOCERR_TBLOPT_BAD, tbl->parse, |
mandoc_msg(MANDOCERR_TBLOPT_BAD, |
ln, pos, "%.*s", len, p + pos); |
ln, pos, "%.*s", len, p + pos); |
pos += len; |
pos += len; |
continue; |
continue; |