version 1.54, 2014/07/09 09:19:03 |
version 1.56, 2014/07/09 11:34:46 |
Line 683 format(const struct req *req, const char *file) |
|
Line 683 format(const struct req *req, const char *file) |
|
return; |
return; |
} |
} |
|
|
mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, NULL); |
mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, |
|
req->q.manroot); |
rc = mparse_readfd(mp, fd, file); |
rc = mparse_readfd(mp, fd, file); |
close(fd); |
close(fd); |
|
|
Line 940 pathgen(struct req *req) |
|
Line 941 pathgen(struct req *req) |
|
return; |
return; |
|
|
while (NULL != (dp = fgetln(fp, &dpsz))) { |
while (NULL != (dp = fgetln(fp, &dpsz))) { |
|
if ('\n' == dp[dpsz - 1]) |
|
dpsz--; |
req->p = mandoc_realloc(req->p, |
req->p = mandoc_realloc(req->p, |
(req->psz + 1) * sizeof(char *)); |
(req->psz + 1) * sizeof(char *)); |
req->p[req->psz++] = mandoc_strndup(dp, dpsz); |
req->p[req->psz++] = mandoc_strndup(dp, dpsz); |