/[global]/global/htags/htags.c
ViewVC logotype

Diff of /global/htags/htags.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.70 by h-iwamoto, Sun Sep 4 11:44:24 2005 UTC revision 1.71 by shigio, Tue Oct 4 07:59:04 2005 UTC
# Line 278  clean(void) Line 278  clean(void)
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    
# Line 310  signal_setup(void) Line 309  signal_setup(void)
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];
# Line 428  generate_file(dist, file) Line 425  generate_file(dist, file)
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  }  }
# Line 438  makeprogram(cgidir, file) Line 433  makeprogram(cgidir, file)
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;
# Line 453  makebless(file) Line 447  makebless(file)
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    
# Line 472  makeghtml(cgidir, file) Line 464  makeghtml(cgidir, file)
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    
# Line 494  makerebuild(file) Line 485  makerebuild(file)
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;
# Line 566  makehelp(file) Line 556  makehelp(file)
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    
# Line 629  makesearchpart(action, id, target) Line 616  makesearchpart(action, id, target)
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    
# Line 684  makeindex(file, title, index) Line 668  makeindex(file, title, index)
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    
# Line 711  makemainindex(file, index) Line 693  makemainindex(file, index)
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    
# Line 731  makesearchindex(file) Line 712  makesearchindex(file)
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    
# Line 758  makehtaccess(file) Line 738  makehtaccess(file)
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];
# Line 786  do_src2html(path_list, count, total) Line 763  do_src2html(path_list, count, total)
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 *_;
# Line 878  makehtml(total) Line 854  makehtml(total)
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];
# Line 905  copyfile(from, to) Line 879  copyfile(from, to)
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];
# Line 931  duplicatefile(file, from, to) Line 902  duplicatefile(file, from, to)
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);
# Line 1059  basic_check(void) Line 1027  basic_check(void)
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;
# Line 1407  configuration(argc, argv) Line 1373  configuration(argc, argv)
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);
# Line 1477  save_environment(argc, argv) Line 1441  save_environment(argc, argv)
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);
# Line 1538  append_options(argc, argv) Line 1500  append_options(argc, argv)
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;

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26