version 1.321, 2019/03/04 18:15:06 |
version 1.323, 2019/04/30 18:51:57 |
Line 411 main(int argc, char *argv[]) |
|
Line 411 main(int argc, char *argv[]) |
|
res[sz].file = mandoc_strdup(argv[c]); |
res[sz].file = mandoc_strdup(argv[c]); |
res[sz].names = NULL; |
res[sz].names = NULL; |
res[sz].output = NULL; |
res[sz].output = NULL; |
|
res[sz].bits = 0; |
res[sz].ipath = SIZE_MAX; |
res[sz].ipath = SIZE_MAX; |
res[sz].sec = 10; |
res[sz].sec = 10; |
res[sz].form = FORM_SRC; |
res[sz].form = FORM_SRC; |
|
|
page->file = file; |
page->file = file; |
page->names = NULL; |
page->names = NULL; |
page->output = NULL; |
page->output = NULL; |
|
page->bits = NAME_FILE & NAME_MASK; |
page->ipath = ipath; |
page->ipath = ipath; |
page->sec = (*sec >= '1' && *sec <= '9') ? *sec - '1' + 1 : 10; |
page->sec = (*sec >= '1' && *sec <= '9') ? *sec - '1' + 1 : 10; |
page->form = form; |
page->form = form; |
Line 1161 spawn_pager(struct tag_files *tag_files) |
|
Line 1163 spawn_pager(struct tag_files *tag_files) |
|
char *argv[MAX_PAGER_ARGS]; |
char *argv[MAX_PAGER_ARGS]; |
const char *pager; |
const char *pager; |
char *cp; |
char *cp; |
|
#if HAVE_LESS_T |
size_t cmdlen; |
size_t cmdlen; |
|
#endif |
int argc, use_ofn; |
int argc, use_ofn; |
pid_t pager_pid; |
pid_t pager_pid; |
|
|
Line 1193 spawn_pager(struct tag_files *tag_files) |
|
Line 1197 spawn_pager(struct tag_files *tag_files) |
|
/* For less(1), use the tag file. */ |
/* For less(1), use the tag file. */ |
|
|
use_ofn = 1; |
use_ofn = 1; |
|
#if HAVE_LESS_T |
if ((cmdlen = strlen(argv[0])) >= 4) { |
if ((cmdlen = strlen(argv[0])) >= 4) { |
cp = argv[0] + cmdlen - 4; |
cp = argv[0] + cmdlen - 4; |
if (strcmp(cp, "less") == 0) { |
if (strcmp(cp, "less") == 0) { |
Line 1205 spawn_pager(struct tag_files *tag_files) |
|
Line 1210 spawn_pager(struct tag_files *tag_files) |
|
} |
} |
} |
} |
} |
} |
|
#endif |
if (use_ofn) |
if (use_ofn) |
argv[argc++] = tag_files->ofn; |
argv[argc++] = tag_files->ofn; |
argv[argc] = NULL; |
argv[argc] = NULL; |