version 1.41, 2014/04/20 19:40:13 |
version 1.44, 2014/07/06 19:09:00 |
Line 300 eqn_read(struct eqn_node **epp, int ln, |
|
Line 300 eqn_read(struct eqn_node **epp, int ln, |
|
p++; |
p++; |
if ('\0' == *p) |
if ('\0' == *p) |
return(er); |
return(er); |
mandoc_msg(MANDOCERR_ARGSLOST, ep->parse, ln, pos, NULL); |
mandoc_vmsg(MANDOCERR_ARG_SKIP, ep->parse, |
|
ln, pos, "EN %s", p); |
return(er); |
return(er); |
} |
} |
|
|
|
|
ep->cur++; |
ep->cur++; |
} else { |
} else { |
if (q) |
if (q) |
EQN_MSG(MANDOCERR_BADQUOTE, ep); |
EQN_MSG(MANDOCERR_ARG_QUOTE, ep); |
next = strchr(start, '\0'); |
next = strchr(start, '\0'); |
*sz = (size_t)(next - start); |
*sz = (size_t)(next - start); |
ep->cur += *sz; |
ep->cur += *sz; |
Line 864 eqn_do_define(struct eqn_node *ep) |
|
Line 865 eqn_do_define(struct eqn_node *ep) |
|
|
|
if (i == (int)ep->defsz) { |
if (i == (int)ep->defsz) { |
ep->defsz++; |
ep->defsz++; |
ep->defs = mandoc_realloc(ep->defs, |
ep->defs = mandoc_reallocarray(ep->defs, |
ep->defsz * sizeof(struct eqn_def)); |
ep->defsz, sizeof(struct eqn_def)); |
ep->defs[i].key = ep->defs[i].val = NULL; |
ep->defs[i].key = ep->defs[i].val = NULL; |
} |
} |
|
|