version 1.10, 2009/03/09 13:04:01 |
version 1.11, 2009/03/09 13:35:09 |
Line 312 parse(struct mmain *p) |
|
Line 312 parse(struct mmain *p) |
|
} |
} |
|
|
ln[pos] = 0; |
ln[pos] = 0; |
if ( ! mdoc_parseln(p->mdoc, lnn, ln)) |
if ( ! mdoc_parseln(p->mdoc, lnn, ln)) { |
|
free(ln); |
return(0); |
return(0); |
|
} |
lnn++; |
lnn++; |
pos = 0; |
pos = 0; |
} |
} |
} |
} |
|
|
if (pos > 0) |
|
warnx("%s: file not eof-terminated", p->in); |
|
|
|
if (ln) |
if (ln) |
free(ln); |
free(ln); |
|
if (pos > 0) |
|
warnx("%s: file not eof-terminated", p->in); |
return(mdoc_endparse(p->mdoc)); |
return(mdoc_endparse(p->mdoc)); |
} |
} |
|
|