/[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.59 by h-iwamoto, Mon May 9 13:49:05 2005 UTC revision 1.60 by shigio, Mon May 9 22:57:58 2005 UTC
# Line 66  void makeincludeindex(); Line 66  void makeincludeindex();
66   */   */
67  int w32 = W32;                          /* Windows32 environment        */  int w32 = W32;                          /* Windows32 environment        */
68  const char *www = "http://www.gnu.org/software/global/";  const char *www = "http://www.gnu.org/software/global/";
 const char *include_header;  
69  int file_count = 0;  int file_count = 0;
70  int sep = '/';  int sep = '/';
71  const char *save_config;  const char *save_config;
# Line 125  const char *cvsweb_cvsroot; Line 124  const char *cvsweb_cvsroot;
124  const char *gtagslabel;  const char *gtagslabel;
125  const char *title;  const char *title;
126  const char *xhtml_version = "1.0";  const char *xhtml_version = "1.0";
127    const char *insert_header;              /* --insert-header=<file>       */
128    const char *insert_footer;              /* --insert-footer=<file>       */
129    
130  /*  /*
131   * Constant values.   * Constant values.
# Line 238  static struct option const long_options[ Line 239  static struct option const long_options[
239          {"id", required_argument, NULL, 1},          {"id", required_argument, NULL, 1},
240          {"nocgi", no_argument, NULL, 1},          {"nocgi", no_argument, NULL, 1},
241          {"no-map-file", no_argument, &no_map_file, 1},          {"no-map-file", no_argument, &no_map_file, 1},
242            {"insert-header", required_argument, NULL, 1},
243            {"insert-footer", required_argument, NULL, 1},
244          {"statistics", no_argument, &statistics, 1},          {"statistics", no_argument, &statistics, 1},
245          {"style-sheet", required_argument, NULL, 1},          {"style-sheet", required_argument, NULL, 1},
246          {"version", no_argument, &show_version, 1},          {"version", no_argument, &show_version, 1},
# Line 653  makeindex(file, title, index) Line 656  makeindex(file, title, index)
656                  fputs_nl(gen_frameset_end(), op);                  fputs_nl(gen_frameset_end(), op);
657          } else {          } else {
658                  fputs_nl(body_begin, op);                  fputs_nl(body_begin, op);
659                    if (insert_header)
660                            fputs(gen_insert_header(TOPDIR), op);
661                  fputs(index, op);                  fputs(index, op);
662                    if (insert_footer)
663                            fputs(gen_insert_footer(TOPDIR), op);
664                  fputs_nl(body_end, op);                  fputs_nl(body_end, op);
665          }          }
666          fputs_nl(gen_page_end(), op);          fputs_nl(gen_page_end(), op);
# Line 678  makemainindex(file, index) Line 685  makemainindex(file, index)
685                  die("cannot make file '%s'.", file);                  die("cannot make file '%s'.", file);
686          fputs_nl(gen_page_begin(title, TOPDIR, 0), op);          fputs_nl(gen_page_begin(title, TOPDIR, 0), op);
687          fputs_nl(body_begin, op);          fputs_nl(body_begin, op);
688            if (insert_header)
689                    fputs(gen_insert_header(TOPDIR), op);
690          fputs(index, op);          fputs(index, op);
691            if (insert_footer)
692                    fputs(gen_insert_footer(TOPDIR), op);
693          fputs_nl(body_end, op);          fputs_nl(body_end, op);
694          fputs_nl(gen_page_end(), op);          fputs_nl(gen_page_end(), op);
695          fclose(op);          fclose(op);
# Line 850  makecommonpart(title, defines, files) Line 861  makecommonpart(title, defines, files)
861          char command[MAXFILLEN];          char command[MAXFILLEN];
862          const char *_;          const char *_;
863    
         if (include_header) {  
                 strbuf_puts_nl(sb, include_header);  
                 strbuf_puts_nl(sb, hr);  
         }  
864          strbuf_puts(sb, title_begin);          strbuf_puts(sb, title_begin);
865          strbuf_puts(sb, title);          strbuf_puts(sb, title);
866          strbuf_puts_nl(sb, title_end);          strbuf_puts_nl(sb, title_end);
# Line 1501  main(argc, argv) Line 1508  main(argc, argv)
1508                                  ;       /* --gtagslabel is estimated only once. */                                  ;       /* --gtagslabel is estimated only once. */
1509                          else if (!strcmp("style-sheet", long_options[option_index].name))                          else if (!strcmp("style-sheet", long_options[option_index].name))
1510                                  style_sheet = optarg;                                  style_sheet = optarg;
1511                            else if (!strcmp("insert-header", long_options[option_index].name))
1512                                    insert_header = optarg;
1513                            else if (!strcmp("insert-footer", long_options[option_index].name))
1514                                    insert_footer = optarg;
1515                          break;                          break;
1516                  case 'a':                  case 'a':
1517                          aflag++;                          aflag++;
# Line 1560  main(argc, argv) Line 1571  main(argc, argv)
1571                          break;                          break;
1572                  }                  }
1573          }          }
1574            if (insert_header && !test("fr", insert_header))
1575                    die("page header file '%s' not found.", insert_header);
1576            if (insert_footer && !test("fr", insert_footer))
1577                    die("page footer file '%s' not found.", insert_footer);
1578          if (no_map_file)          if (no_map_file)
1579                  map_file = 0;                  map_file = 0;
1580          argc -= optind;          argc -= optind;

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

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