346 |
}; |
}; |
347 |
int tabsize = sizeof(tab) / sizeof(struct map); |
int tabsize = sizeof(tab) / sizeof(struct map); |
348 |
|
|
349 |
tab[0].value = gen_page_begin("Result", 1); |
tab[0].value = gen_page_begin("Result", SUBDIR); |
350 |
tab[1].value = gen_page_end(); |
tab[1].value = gen_page_end(); |
351 |
/* |
/* |
352 |
* construct regular expression. |
* construct regular expression. |
497 |
op = fopen(makepath(distpath, file, NULL), "w"); |
op = fopen(makepath(distpath, file, NULL), "w"); |
498 |
if (!op) |
if (!op) |
499 |
die("cannot make help file."); |
die("cannot make help file."); |
500 |
fputs_nl(gen_page_begin("HELP", 0), op); |
fputs_nl(gen_page_begin("HELP", TOPDIR), op); |
501 |
fputs_nl(body_begin, op); |
fputs_nl(body_begin, op); |
502 |
fputs(header_begin, op); |
fputs(header_begin, op); |
503 |
fputs("Usage of Links", op); |
fputs("Usage of Links", op); |
626 |
op = fopen(makepath(distpath, file, NULL), "w"); |
op = fopen(makepath(distpath, file, NULL), "w"); |
627 |
if (!op) |
if (!op) |
628 |
die("cannot make file '%s'.", file); |
die("cannot make file '%s'.", file); |
629 |
fputs_nl(gen_page_begin(title, 0), op); |
fputs_nl(gen_page_begin(title, TOPDIR), op); |
630 |
if (Fflag) { |
if (Fflag) { |
631 |
fputs_nl(gen_frameset_begin("cols='200,*'"), op); |
fputs_nl(gen_frameset_begin("cols='200,*'"), op); |
632 |
if (fflag) { |
if (fflag) { |
674 |
op = fopen(makepath(distpath, file, NULL), "w"); |
op = fopen(makepath(distpath, file, NULL), "w"); |
675 |
if (!op) |
if (!op) |
676 |
die("cannot make file '%s'.", file); |
die("cannot make file '%s'.", file); |
677 |
fputs_nl(gen_page_begin(title, 0), op); |
fputs_nl(gen_page_begin(title, TOPDIR), op); |
678 |
fputs_nl(body_begin, op); |
fputs_nl(body_begin, op); |
679 |
fputs(index, op); |
fputs(index, op); |
680 |
fputs_nl(body_end, op); |
fputs_nl(body_end, op); |
696 |
op = fopen(makepath(distpath, file, NULL), "w"); |
op = fopen(makepath(distpath, file, NULL), "w"); |
697 |
if (!op) |
if (!op) |
698 |
die("cannot create file '%s'.", file); |
die("cannot create file '%s'.", file); |
699 |
fputs_nl(gen_page_begin("SEARCH", 0), op); |
fputs_nl(gen_page_begin("SEARCH", TOPDIR), op); |
700 |
fputs_nl(body_begin, op); |
fputs_nl(body_begin, op); |
701 |
fputs(makesearchpart(action, id, "mains"), op); |
fputs(makesearchpart(action, id, "mains"), op); |
702 |
fputs_nl(body_end, op); |
fputs_nl(body_end, op); |