278 |
* This handler is set up in signal_setup(). |
* This handler is set up in signal_setup(). |
279 |
*/ |
*/ |
280 |
static void |
static void |
281 |
suddenly(signo) |
suddenly(int signo) |
|
int signo; |
|
282 |
{ |
{ |
283 |
signo = 0; /* to satisfy compiler */ |
signo = 0; /* to satisfy compiler */ |
284 |
|
|
309 |
* i) file file name |
* i) file file name |
310 |
*/ |
*/ |
311 |
static void |
static void |
312 |
generate_file(dist, file) |
generate_file(const char *dist, const char *file) |
|
const char *dist; |
|
|
const char *file; |
|
313 |
{ |
{ |
314 |
regex_t preg; |
regex_t preg; |
315 |
regmatch_t pmatch[2]; |
regmatch_t pmatch[2]; |
425 |
* makeprogram: make CGI program |
* makeprogram: make CGI program |
426 |
*/ |
*/ |
427 |
static void |
static void |
428 |
makeprogram(cgidir, file) |
makeprogram(const char *cgidir, const char *file) |
|
const char *cgidir; |
|
|
const char *file; |
|
429 |
{ |
{ |
430 |
generate_file(cgidir, file); |
generate_file(cgidir, file); |
431 |
} |
} |
433 |
* makebless: make bless.sh file. |
* makebless: make bless.sh file. |
434 |
*/ |
*/ |
435 |
static void |
static void |
436 |
makebless(file) |
makebless(const char *file) |
|
const char *file; |
|
437 |
{ |
{ |
438 |
const char *save = action; |
const char *save = action; |
439 |
action = saction; |
action = saction; |
447 |
* i) file file name |
* i) file file name |
448 |
*/ |
*/ |
449 |
static void |
static void |
450 |
makeghtml(cgidir, file) |
makeghtml(const char *cgidir, const char *file) |
|
const char *cgidir; |
|
|
const char *file; |
|
451 |
{ |
{ |
452 |
FILE *op; |
FILE *op; |
453 |
|
|
464 |
* makerebuild: make rebuild script |
* makerebuild: make rebuild script |
465 |
*/ |
*/ |
466 |
static void |
static void |
467 |
makerebuild(file) |
makerebuild(const char *file) |
|
const char *file; |
|
468 |
{ |
{ |
469 |
FILE *op; |
FILE *op; |
470 |
|
|
485 |
* makehelp: make help file |
* makehelp: make help file |
486 |
*/ |
*/ |
487 |
static void |
static void |
488 |
makehelp(file) |
makehelp(const char *file) |
|
const char *file; |
|
489 |
{ |
{ |
490 |
const char **label = icon_list ? anchor_comment : anchor_label; |
const char **label = icon_list ? anchor_comment : anchor_label; |
491 |
const char **icons = anchor_icons; |
const char **icons = anchor_icons; |
556 |
* r) html |
* r) html |
557 |
*/ |
*/ |
558 |
static char * |
static char * |
559 |
makesearchpart(action, id, target) |
makesearchpart(const char *action, const char *id, const char *target) |
|
const char *action; |
|
|
const char *id; |
|
|
const char *target; |
|
560 |
{ |
{ |
561 |
STATIC_STRBUF(sb); |
STATIC_STRBUF(sb); |
562 |
|
|
616 |
* i) index common part |
* i) index common part |
617 |
*/ |
*/ |
618 |
static void |
static void |
619 |
makeindex(file, title, index) |
makeindex(const char *file, const char *title, const char *index) |
|
const char *file; |
|
|
const char *title; |
|
|
const char *index; |
|
620 |
{ |
{ |
621 |
FILE *op; |
FILE *op; |
622 |
|
|
668 |
* i) index common part |
* i) index common part |
669 |
*/ |
*/ |
670 |
static void |
static void |
671 |
makemainindex(file, index) |
makemainindex(const char *file, const char *index) |
|
const char *file; |
|
|
const char *index; |
|
672 |
{ |
{ |
673 |
FILE *op; |
FILE *op; |
674 |
|
|
693 |
* i) file file name |
* i) file file name |
694 |
*/ |
*/ |
695 |
static void |
static void |
696 |
makesearchindex(file) |
makesearchindex(const char *file) |
|
const char *file; |
|
697 |
{ |
{ |
698 |
FILE *op; |
FILE *op; |
699 |
|
|
712 |
* makehtaccess: make .htaccess skeleton file. |
* makehtaccess: make .htaccess skeleton file. |
713 |
*/ |
*/ |
714 |
static void |
static void |
715 |
makehtaccess(file) |
makehtaccess(const char *file) |
|
const char *file; |
|
716 |
{ |
{ |
717 |
FILE *op; |
FILE *op; |
718 |
|
|
738 |
* Wrapper of src2html() |
* Wrapper of src2html() |
739 |
*/ |
*/ |
740 |
static int |
static int |
741 |
do_src2html(path_list, count, total) |
do_src2html(STRBUF *path_list, int count, int total) |
|
STRBUF *path_list; |
|
|
int count; |
|
|
int total; |
|
742 |
{ |
{ |
743 |
int notsource; |
int notsource; |
744 |
char path[MAXPATHLEN]; |
char path[MAXPATHLEN]; |
763 |
* i) total number of files. |
* i) total number of files. |
764 |
*/ |
*/ |
765 |
static void |
static void |
766 |
makehtml(total) |
makehtml(int total) |
|
int total; |
|
767 |
{ |
{ |
768 |
FILE *ip; |
FILE *ip; |
769 |
const char *_; |
const char *_; |
854 |
* copy file. |
* copy file. |
855 |
*/ |
*/ |
856 |
static void |
static void |
857 |
copyfile(from, to) |
copyfile(const char *from, const char *to) |
|
const char *from; |
|
|
const char *to; |
|
858 |
{ |
{ |
859 |
int ip, op, size; |
int ip, op, size; |
860 |
char buf[8192]; |
char buf[8192]; |
879 |
* By default, htags uses link system call without making a copy. |
* By default, htags uses link system call without making a copy. |
880 |
*/ |
*/ |
881 |
static void |
static void |
882 |
duplicatefile(file, from, to) |
duplicatefile(const char *file, const char *from, const char *to) |
|
const char *file; |
|
|
const char *from; |
|
|
const char *to; |
|
883 |
{ |
{ |
884 |
char from_path[MAXPATHLEN]; |
char from_path[MAXPATHLEN]; |
885 |
char to_path[MAXPATHLEN]; |
char to_path[MAXPATHLEN]; |
902 |
* r) index common part |
* r) index common part |
903 |
*/ |
*/ |
904 |
static char * |
static char * |
905 |
makecommonpart(title, defines, files) |
makecommonpart(const char *title, const char *defines, const char *files) |
|
const char *title; |
|
|
const char *defines; |
|
|
const char *files; |
|
906 |
{ |
{ |
907 |
FILE *ip; |
FILE *ip; |
908 |
STRBUF *sb = strbuf_open(0); |
STRBUF *sb = strbuf_open(0); |
1027 |
* load configuration variables. |
* load configuration variables. |
1028 |
*/ |
*/ |
1029 |
static void |
static void |
1030 |
configuration(argc, argv) |
configuration(int argc, char **argv) |
|
int argc; |
|
|
char *argv[]; |
|
1031 |
{ |
{ |
1032 |
STRBUF *sb = strbuf_open(0); |
STRBUF *sb = strbuf_open(0); |
1033 |
int i, n; |
int i, n; |
1373 |
* save_environment: save configuration data and arguments. |
* save_environment: save configuration data and arguments. |
1374 |
*/ |
*/ |
1375 |
static void |
static void |
1376 |
save_environment(argc, argv) |
save_environment(int argc, char **argv) |
|
int argc; |
|
|
char *argv[]; |
|
1377 |
{ |
{ |
1378 |
char command[MAXFILLEN]; |
char command[MAXFILLEN]; |
1379 |
STRBUF *sb = strbuf_open(0); |
STRBUF *sb = strbuf_open(0); |
1441 |
} |
} |
1442 |
|
|
1443 |
char ** |
char ** |
1444 |
append_options(argc, argv) |
append_options(int *argc, char **argv) |
|
int *argc; |
|
|
char *argv[]; |
|
1445 |
{ |
{ |
1446 |
|
|
1447 |
STRBUF *sb = strbuf_open(0); |
STRBUF *sb = strbuf_open(0); |
1500 |
return argv; |
return argv; |
1501 |
} |
} |
1502 |
int |
int |
1503 |
main(argc, argv) |
main(int argc, char **argv) |
|
int argc; |
|
|
char *argv[]; |
|
1504 |
{ |
{ |
1505 |
const char *path, *av = NULL; |
const char *path, *av = NULL; |
1506 |
int func_total, file_total; |
int func_total, file_total; |