version 1.297, 2017/07/02 15:31:59 |
version 1.298, 2017/07/02 21:18:29 |
Line 844 check_xr(const char *file) |
|
Line 844 check_xr(const char *file) |
|
continue; |
continue; |
if (fs_search(&search, &paths, 1, &xr->name, NULL, &sz)) |
if (fs_search(&search, &paths, 1, &xr->name, NULL, &sz)) |
continue; |
continue; |
mandoc_asprintf(&cp, "Xr %s %s", xr->name, xr->sec); |
if (xr->count == 1) |
|
mandoc_asprintf(&cp, "Xr %s %s", xr->name, xr->sec); |
|
else |
|
mandoc_asprintf(&cp, "Xr %s %s (%d times)", |
|
xr->name, xr->sec, xr->count); |
mmsg(MANDOCERR_XR_BAD, MANDOCLEVEL_STYLE, |
mmsg(MANDOCERR_XR_BAD, MANDOCLEVEL_STYLE, |
file, xr->line, xr->pos + 1, cp); |
file, xr->line, xr->pos + 1, cp); |
free(cp); |
free(cp); |